open-index/open-npm huggingface dataset:
npm package: @node-minify/swc
Description: swc plugin for @node-minify
Author: Rodolphe Stoclin
Latest version: 10.5.0

<p align="center"><img src="https://raw.githubusercontent.com/srod/node-minify/main/static/node-minify.svg" width="348" alt="node-minify"></p>

<p align="center">A very light minifier Node.js module.</p>

<p align="center">
  <br>
  <a href="https://npmjs.org/package/@node-minify/swc"><img src="https://img.shields.io/npm/v/@node-minify/swc.svg" alt="npm version"></a>
  <a href="https://npmjs.org/package/@node-minify/swc"><img src="https://img.shields.io/npm/dm/@node-minify/swc.svg" alt="npm downloads"></a>
  <a href="https://github.com/srod/node-minify/actions"><img alt="Build Status" src="https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fsrod%2Fnode-minify%2Fbadge%3Fref%3Dmain&style=flat" /></a>
  <a href="https://codecov.io/gh/srod/node-minify"><img src="https://codecov.io/gh/srod/node-minify/branch/main/graph/badge.svg" alt="code coverage"></a>
</p>

# swc

`swc` is a plugin for [`node-minify`](https://github.com/srod/node-minify)

It allows you to compress JavaScript files using [SWC](https://swc.rs/), a super-fast Rust-based JavaScript/TypeScript compiler used by Next.js and Parcel.

## Installation

```bash
npm install @node-minify/core @node-minify/swc
```

## Usage

```js
import { minify } from '@node-minify/core';
import { swc } from '@node-minify/swc';

// Minify JavaScript
await minify({
  compressor: swc,
  input: 'foo.js',
  output: 'bar.js'
});

// With source maps
await minify({
  compressor: swc,
  input: 'foo.js',
  output: 'bar.js',
  options: {
    sourceMap: true
  }
});

// With custom options
await minify({
  compressor: swc,
  input: 'foo.js',
  output: 'bar.js',
  options: {
    mangle: false,
    compress: {
      dead_code: true
    }
  }
});
```

## Documentation

Visit https://node-minify.2clics.net/compressors/swc.html for full documentation

## License

[MIT](https://github.com/srod/node-minify/blob/main/LICENSE)
npm package: @node-minify/terser
Description: terser plugin for @node-minify
Author: Rodolphe Stoclin
Latest version: 10.5.0

<p align="center"><img src="https://raw.githubusercontent.com/srod/node-minify/main/static/node-minify.svg" width="348" alt="node-minify"></p>

<p align="center">A very light minifier Node.js module.</p>

<p align="center">
  <br>
  <a href="https://npmjs.org/package/@node-minify/terser"><img src="https://img.shields.io/npm/v/@node-minify/terser.svg" alt="npm version"></a>
  <a href="https://npmjs.org/package/@node-minify/terser"><img src="https://img.shields.io/npm/dm/@node-minify/terser.svg" alt="npm downloads"></a>
  <a href="https://github.com/srod/node-minify/actions"><img alt="Build Status" src="https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fsrod%2Fnode-minify%2Fbadge%3Fref%3Dmain&style=flat" /></a>
  <a href="https://codecov.io/gh/srod/node-minify"><img src="https://codecov.io/gh/srod/node-minify/branch/main/graph/badge.svg" alt="code coverage"></a>
</p>

# terser

`terser` is a plugin for [`node-minify`](https://github.com/srod/node-minify)

It allow you to compress JavaScript files.

## Installation

```bash
npm install @node-minify/core @node-minify/terser
```

## Usage

```js
import { minify } from '@node-minify/core';
import { terser } from '@node-minify/terser';

await minify({
  compressor: terser,
  input: 'foo.js',
  output: 'bar.js'
});
```

## Documentation

Visit https://node-minify.2clics.net/compressors/terser.html for full documentation

## License

[MIT](https://github.com/srod/node-minify/blob/main/LICENSE)
npm package: @node-minify/types
Description: types for @node-minify
Author: Rodolphe Stoclin
Latest version: 10.5.0

<p align="center"><img src="https://raw.githubusercontent.com/srod/node-minify/main/static/node-minify.svg" width="348" alt="node-minify"></p>

<p align="center">A very light minifier Node.js module.</p>

<p align="center">
  <br>
  <a href="https://npmjs.org/package/@node-minify/types"><img src="https://img.shields.io/npm/v/@node-minify/types.svg" alt="npm version"></a>
  <a href="https://npmjs.org/package/@node-minify/types"><img src="https://img.shields.io/npm/dm/@node-minify/types.svg" alt="npm downloads"></a>
  <a href="https://github.com/srod/node-minify/actions"><img alt="Build Status" src="https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fsrod%2Fnode-minify%2Fbadge%3Fref%3Dmain&style=flat" /></a>
  <a href="https://codecov.io/gh/srod/node-minify"><img src="https://codecov.io/gh/srod/node-minify/branch/main/graph/badge.svg" alt="code coverage"></a>
</p>

# Types for node-minify

`Types` is a plugin for [`node-minify`](https://github.com/srod/node-minify)

## Installation

```bash
npm install --save-dev @node-minify/types
```

## License

[MIT](https://github.com/srod/node-minify/blob/main/LICENSE)
npm package: @node-minify/uglify-es
Description: uglify-es plugin for @node-minify (DEPRECATED - use @node-minify/terser)
Author: Rodolphe Stoclin
Latest version: 10.5.0
Deprecated: uglify-es is no longer maintained. Please use @node-minify/terser instead.

<p align="center"><img src="https://raw.githubusercontent.com/srod/node-minify/main/static/node-minify.svg" width="348" alt="node-minify"></p>

<p align="center">A very light minifier Node.js module.</p>

<p align="center">
  <br>
  <a href="https://npmjs.org/package/@node-minify/uglify-es"><img src="https://img.shields.io/npm/v/@node-minify/uglify-es.svg" alt="npm version"></a>
  <a href="https://npmjs.org/package/@node-minify/uglify-es"><img src="https://img.shields.io/npm/dm/@node-minify/uglify-es.svg" alt="npm downloads"></a>
  <a href="https://github.com/srod/node-minify/actions"><img alt="Build Status" src="https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fsrod%2Fnode-minify%2Fbadge%3Fref%3Dmain&style=flat" /></a>
  <a href="https://codecov.io/gh/srod/node-minify"><img src="https://codecov.io/gh/srod/node-minify/branch/main/graph/badge.svg" alt="code coverage"></a>
</p>

# uglify-es

> **DEPRECATED**: This package is deprecated because `uglify-es` is no longer maintained upstream.
> Please use [`@node-minify/terser`](https://github.com/srod/node-minify/tree/main/packages/terser) instead, which is actively maintained and supports modern JavaScript.

`uglify-es` is a plugin for [`node-minify`](https://github.com/srod/node-minify)

It allow you to compress JavaScript files.

## Installation

```bash
npm install @node-minify/core @node-minify/uglify-es
```

## Usage

```js
import { minify } from '@node-minify/core';
import { uglifyEs } from '@node-minify/uglify-es';

await minify({
  compressor: uglifyEs,
  input: 'foo.js',
  output: 'bar.js'
});
```

## Documentation

Visit https://node-minify.2clics.net/compressors/uglify-es.html for full documentation

## License

[MIT](https://github.com/srod/node-minify/blob/main/LICENSE)
npm package: @node-minify/uglify-js
Description: uglify-js plugin for @node-minify
Author: Rodolphe Stoclin
Latest version: 10.5.0

<p align="center"><img src="https://raw.githubusercontent.com/srod/node-minify/main/static/node-minify.svg" width="348" alt="node-minify"></p>

<p align="center">A very light minifier Node.js module.</p>

<p align="center">
  <br>
  <a href="https://npmjs.org/package/@node-minify/uglify-js"><img src="https://img.shields.io/npm/v/@node-minify/uglify-js.svg" alt="npm version"></a>
  <a href="https://npmjs.org/package/@node-minify/uglify-js"><img src="https://img.shields.io/npm/dm/@node-minify/uglify-js.svg" alt="npm downloads"></a>
  <a href="https://github.com/srod/node-minify/actions"><img alt="Build Status" src="https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fsrod%2Fnode-minify%2Fbadge%3Fref%3Dmain&style=flat" /></a>
  <a href="https://codecov.io/gh/srod/node-minify"><img src="https://codecov.io/gh/srod/node-minify/branch/main/graph/badge.svg" alt="code coverage"></a>
</p>

# uglify-js

`uglify-js` is a plugin for [`node-minify`](https://github.com/srod/node-minify)

It allow you to compress JavaScript files.

## Installation

```bash
npm install @node-minify/core @node-minify/uglify-js
```

## Usage

```js
import { minify } from '@node-minify/core';
import { uglifyJs } from '@node-minify/uglify-js';

await minify({
  compressor: uglifyJs,
  input: 'foo.js',
  output: 'bar.js'
});
```

## Documentation

Visit https://node-minify.2clics.net/compressors/uglify-js.html for full documentation

## License

[MIT](https://github.com/srod/node-minify/blob/main/LICENSE)
npm package: @node-minify/yui
Description: yui - yahoo compressor plugin for @node-minify (DEPRECATED)
Author: Rodolphe Stoclin
Latest version: 10.5.0
Deprecated: YUI Compressor was deprecated by Yahoo in 2013. Please use @node-minify/terser for JS or @node-minify/cssnano for CSS instead.

<p align="center"><img src="https://raw.githubusercontent.com/srod/node-minify/main/static/node-minify.svg" width="348" alt="node-minify"></p>

<p align="center">A very light minifier Node.js module.</p>

<p align="center">
  <br>
  <a href="https://npmjs.org/package/@node-minify/yui"><img src="https://img.shields.io/npm/v/@node-minify/yui.svg" alt="npm version"></a>
  <a href="https://npmjs.org/package/@node-minify/yui"><img src="https://img.shields.io/npm/dm/@node-minify/yui.svg" alt="npm downloads"></a>
  <a href="https://github.com/srod/node-minify/actions"><img alt="Build Status" src="https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fsrod%2Fnode-minify%2Fbadge%3Fref%3Dmain&style=flat" /></a>
  <a href="https://codecov.io/gh/srod/node-minify"><img src="https://codecov.io/gh/srod/node-minify/branch/main/graph/badge.svg" alt="code coverage"></a>
</p>

# YUI Compressor

> **DEPRECATED**: YUI Compressor was deprecated by Yahoo in 2013 and is no longer maintained.
> Please use [`@node-minify/terser`](https://github.com/srod/node-minify/tree/main/packages/terser) for JavaScript or [`@node-minify/cssnano`](https://github.com/srod/node-minify/tree/main/packages/cssnano) for CSS instead.

`Yahoo Compressor` is a plugin for [`node-minify`](https://github.com/srod/node-minify)

It allow you to compress both JavaScript and CSS files.

## Installation

```bash
npm install @node-minify/core @node-minify/yui
```

## Usage

```js
import { minify } from '@node-minify/core';
import { yui } from '@node-minify/yui';

await minify({
  compressor: yui,
  type: 'js',
  input: 'foo.js',
  output: 'bar.js'
});

await minify({
  compressor: yui,
  type: 'css',
  input: 'foo.css',
  output: 'bar.css'
});
```

## Documentation

Visit https://node-minify.2clics.net/compressors/yui.html for full documentation

## License

[MIT](https://github.com/srod/node-minify/blob/main/LICENSE)