# gulp-terser-scoped

> compress code in closure function

Latest version **2.0.0** (published 2021-05-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-terser-scoped
pnpm add gulp-terser-scoped
yarn add gulp-terser-scoped
bun add gulp-terser-scoped
```

## 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 | 2.0.0 |
| Published | 2021-05-25 |
| First published | 2018-11-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 2.8 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | xinglie |
| Maintainers | xinglie |
| Keywords | uglify, es module, terser |

## Links

- npm: https://www.npmjs.com/package/gulp-terser-scoped
- Repository: https://github.com/xinglie/gulp-terser-scoped
- Homepage: https://github.com/xinglie/gulp-terser-scoped#readme
- Issues: https://github.com/xinglie/gulp-terser-scoped/issues
- npm.io page: https://npm.io/package/gulp-terser-scoped

## Dependencies (2)

- [terser](https://npm.io/package/terser.md) 5.7.0
- [o-stream](https://npm.io/package/o-stream.md) 0.2.2

## Recent versions

- 2.0.0 (latest) — 2021-05-25
- 1.0.0 — 2018-11-09

## README

# gulp-terser-scoped [![Version Number](https://img.shields.io/npm/v/gulp-terser-scoped.svg)](https://github.com/xinglie/gulp-terser-scoped/ "Version Number") [![License](https://img.shields.io/badge/license-MIT-orange.svg)](https://opensource.org/licenses/MIT "License") [![download](https://img.shields.io/npm/dm/gulp-terser-scoped.svg)](https://www.npmjs.com/package/gulp-terser-scoped)
> npm install gulp-terser-scoped

# gulp-terser-scoped
compress code in closure function

```js
const GulpTerser=require('gulp-terser-scoped');
gulp.task('compress', () => {
    return gulp.src('./dist/*.js')
        .pipe(GulpTerser({
            compress: {
                drop_console: true,
                drop_debugger: true,
                global_defs: {
                    DEBUG: false
                }
            },
            output: {
                ascii_only: true
            }
        }))
        .pipe(gulp.dest('./dist'));
});
```

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