1.0.4 • Published 7 years ago

libbpg-bin v1.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

libbpg-bin

binary wrapper for libbpg

This wrapper gonna use prebuilt binary if possible and fallback to compile from latest source code from here.

Install

$ npm install --save libbpg-bin

Usage

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.
});

Available prebuilt binary version

OSlibbpg version
MacOS0.9.4
Linuxneed help
Windowsneed help

compile and PR is welcome!

# create binary for the latest version
$ npm run binary -- --compile 

# or create a specific version
$ npm run binary -- --compile="0.9.4"

License

MIT

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.9.7

7 years ago