bin-build
Easily build binaries
Install
$ npm install --save bin-build
Usage
var BinBuild = require('bin-build');
var build = new BinBuild()
.src('http://www.lcdf.org/gifsicle/gifsicle-1.80.tar.gz')
.cmd('./configure --disable-gifview --disable-gifdiff')
.cmd('make install');
build.build(function (err) {
if (err) {
throw err;
}
console.log('gifsicle built successfully');
});
API
new BinBuild
Creates a new BinBuild
instance.
.src(str)
Accepts a URL to a archive containing the source code.
.cmd(str)
Add a command to run when building.
.build(cb)
Runs the build and returns an error if something has gone wrong
License
MIT © Kevin Mårtensson