# bin-build

> Easily build binaries

Latest version **3.0.0** (published 2017-06-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install bin-build
pnpm add bin-build
yarn add bin-build
bun add bin-build
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2017-06-17 |
| First published | 2014-04-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 5 |
| Known vulnerabilities | 0 (+3 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 39 |
| Author | Kevin Mårtensson |
| Maintainers | kevva, shinnn |
| Keywords | binary, build, make |

## Links

- npm: https://www.npmjs.com/package/bin-build
- Repository: https://github.com/kevva/bin-build
- Homepage: https://github.com/kevva/bin-build#readme
- Issues: https://github.com/kevva/bin-build/issues
- npm.io page: https://npm.io/package/bin-build

## Dependencies (5)

- [execa](https://npm.io/package/execa.md) ^0.7.0
- [download](https://npm.io/package/download.md) ^6.2.2
- [tempfile](https://npm.io/package/tempfile.md) ^2.0.0
- [decompress](https://npm.io/package/decompress.md) ^4.0.0
- [p-map-series](https://npm.io/package/p-map-series.md) ^1.0.0

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 3.0.0 (latest) — 2017-06-17
- 2.2.0 — 2015-10-22
- 2.1.3 — 2015-10-17
- 2.1.2 — 2015-06-16
- 2.1.1 — 2015-01-16
- 2.1.0 — 2014-10-22
- 2.0.0 — 2014-10-19
- 1.1.0 — 2014-10-19
- 1.0.1 — 2014-09-01
- 1.0.0 — 2014-08-20
- 0.2.0 — 2014-08-09
- 0.1.1 — 2014-04-29
- 0.1.0 — 2014-04-25

## README

# bin-build [![Build Status](https://travis-ci.org/kevva/bin-build.svg?branch=master)](https://travis-ci.org/kevva/bin-build)

> Easily build binaries


## Install

```
$ npm install --save bin-build
```


## Usage

```js
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`<br>
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`<br>
Default: `1`

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


## License

MIT © [Kevin Mårtensson](https://github.com/kevva)

---
_Source: https://npm.io/package/bin-build · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
