# gulp-butternut

> Minify files with butternut.

Latest version **1.0.0** (published 2017-05-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-butternut
pnpm add gulp-butternut
yarn add gulp-butternut
bun add gulp-butternut
```

## 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 | 1.0.0 |
| Published | 2017-05-17 |
| First published | 2017-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Erik Zettersten |
| Maintainers | erik5388 |
| Keywords | gulpplugin |

## Links

- npm: https://www.npmjs.com/package/gulp-butternut
- Repository: https://github.com/etsms/gulp-butternut
- Homepage: https://github.com/etsms/gulp-butternut/
- Issues: https://github.com/etsms/gulp-butternut/issues
- npm.io page: https://npm.io/package/gulp-butternut

## Dependencies (7)

- [lodash](https://npm.io/package/lodash.md) ^4.13.1
- [gulplog](https://npm.io/package/gulplog.md) ^1.0.0
- [through2](https://npm.io/package/through2.md) ^2.0.0
- [butternut](https://npm.io/package/butternut.md) ~0.4.4
- [has-gulplog](https://npm.io/package/has-gulplog.md) ^0.1.0
- [make-error-cause](https://npm.io/package/make-error-cause.md) ^1.1.1
- [vinyl-sourcemaps-apply](https://npm.io/package/vinyl-sourcemaps-apply.md) ^0.2.0

## Recent versions

- 1.0.0 (latest) — 2017-05-17

## README

# gulp-butternut

> Minify JavaScript with [butternut](https://github.com/Rich-Harris/butternut).

## Installation

Install package with NPM and add it to your development dependencies:

`npm install --save-dev gulp-butternut`

## Usage

```javascript
var gulp = require('gulp');
var butternut = require('gulp-butternut');

gulp.task('compress', function (cb) {
    return gulp.src('lib/*.js')
        .pipe(butternut(options))
        .pipe(gulp.dest('dist'));
});
```

### Options

The `options` argument, if supplied, is an object that can have the following properties:

| Option             | Default value | Description                                                                                    |
|--------------------|---------------|------------------------------------------------------------------------------------------------|
| check              | `false`       | Parse output. See [below](https://github.com/Rich-Harris/butternut#the-check-option)                                                   |
| allowDangerousEval | `false`       | Whether to allow direct `eval` calls                                                           |
| sourceMap          | `true`        | Whether to create a sourcemap. Set to `inline` to append to the output (not recommended)       |
| file               | `null`        | The output filename, used in sourcemap generation                                              |
| source             | `null`        | The source filename, used in sourcemap generation                                              |
| includeContent     | `true`        | Whether to include the source file in the `sourcesContent` property of the generated sourcemap |

## License

[MIT](LICENSE)

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