7.0.0 • Published 25 days ago

@localnerve/bin-build v7.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
25 days ago

bin-build

npm version Verify Coverage Status

Easily build binaries

This is an updated fork of kevva/bin-build that is maintained

Version 4.0.0+ on public-package branch is the forward maintained version under @localnerve/bin-build

Install

$ npm install --save bin-build

Usage

const binBuild = require('bin-build');

binBuild.url('http://www.lcdf.org/gifsicle/gifsicle-1.80.tar.gz', [
	'./configure --disable-gifview --disable-gifdiff',
	'make install'
]).then(() => {
	console.log('gifsicle built successfully');
});

binBuild.file('gifsicle-1.80.tar.gz', [
	'./configure --disable-gifview --disable-gifdiff',
	'make install'
]).then(() => {
	console.log('gifsicle built successfully');
});

API

binBuild.directory(directory, commands)

directory

Type: string

Path to a directory containing the source code.

commands

Type: Array

Commands to run when building.

binBuild.file(file, commands, options)

file

Type: string

Path to a archive file containing the source code.

commands

Type: Array

Commands to run when building.

options

Type: Object

strip

Type: number Default: 1

Strip a number of leading paths from file names on extraction.

binBuild.url(url, commands, options)

url

Type: string

URL to a archive file containing the source code.

commands

Type: Array

Commands to run when building.

options

Type: Object

strip

Type: number Default: 1

Strip a number of leading paths from file names on extraction.

License

MIT © Kevin Mårtensson

7.0.0

25 days ago

6.0.2

2 months ago

6.0.1

3 months ago

6.0.0

4 months ago

5.0.3

5 months ago

5.0.2

6 months ago

5.0.1

7 months ago

5.0.0

7 months ago

4.0.1

7 months ago