JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 721472
  • Score
    100M100P100Q182525F
  • License MIT

Easily build binaries

Package Exports

  • bin-build

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (bin-build) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

bin-build Build Status

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.run(function (err) {
    if (err) {
        throw err;
    }

    console.log('gifsicle built successfully');
});

API

new BinBuild(opts)

Creates a new BinBuild instance. Available options are:

  • strip: Strip a number of leading paths from file names on extraction. Defaults to 1.

.src(str)

Type: String

Accepts a URL to a archive containing the source code, a path to an archive or a path to a directory containing the source code.

.cmd(str)

Type: String

Add a command to run when building.

.run(cb)

Type: Function

Runs the build and returns an error if something has gone wrong

License

MIT © Kevin Mårtensson