Socket
Socket
Sign inDemoInstall

bin-build

Package Overview
Dependencies
200
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bin-build

Easily build binaries


Version published
Maintainers
1
Install size
6.91 MB
Created

Readme

Source

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.

.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

Keywords

FAQs

Last updated on 22 Oct 2014

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc