bin-build

3.0.0last stable release 8 years ago
Complexity Score
Low
Open Issues
7
Dependent Projects
73
Weekly Downloadsglobal
627,287

License

  • MIT
    • Yesattribution
    • Permissivelinking
    • Permissivedistribution
    • Permissivemodification
    • Nopatent grant
    • Yesprivate use
    • Permissivesublicensing
    • Notrademark grant

Downloads

Readme

bin-build

Easily build binaries

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

Dependencies

CVE IssuesActive
0
Scorecards Score
3.00
Test Coverage
No Data
Follows Semver
Yes
Github Stars
38
Dependenciestotal
10
DependenciesOutdated
7
DependenciesDeprecated
0
Threat Modelling
No
Repo Audits
No

Learn how to distribute bin-build in your own private NPM registry

npm config set registry  https://npm.cloudsmith.com/owner/repo
Processing...
Done
npm install bin-build
Processing...
Done

13 Releases

NPM on Cloudsmith

Getting started with NPM on Cloudsmith is fast and easy.