Binary wrapper for libbpg that makes it seamlessly available as a local dependecy
npm install libbpg-bin> binary wrapper for libbpg
This wrapper gonna use prebuilt binary if possible and fallback to compile from latest source code from here.
```
$ npm install --save libbpg-bin
`js
const { exec } = require('child_process');
const { bpgenc, bpgdec } = require('libbpg-bin');
exec(${bpgenc} -o output.bpg input.png, () => {
// Yay! BIG input.png had been converted to SMALL output.bpg.
});
exec(${bpgdec} -o input.png output.bpg, () => {`
// Owh! BIG input.png come back again.
});
|OS|libbpg version|
|---|---|
|MacOS|0.9.4|
|Linux|need help|
|Windows|need help|
compile and PR is welcome!
`shcreate binary for the latest version
$ npm run binary -- --compile
MIT