# rollup-plugin-confuser

> Obfuscate your project using js-confuser.

Latest version **1.0.1** (published 2023-12-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install rollup-plugin-confuser
pnpm add rollup-plugin-confuser
yarn add rollup-plugin-confuser
bun add rollup-plugin-confuser
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2023-12-04 |
| First published | 2023-11-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 4.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Angelo II |
| Maintainers | angelocore |
| Keywords | obfuscate, js-confuser, rollup |

## Links

- npm: https://www.npmjs.com/package/rollup-plugin-confuser
- Repository: https://github.com/AngeloCore/rollup-plugin-confuser
- Issues: https://github.com/AngeloCore/rollup-plugin-confuser/issues
- Funding: https://paypal.me/AngeloCore
- npm.io page: https://npm.io/package/rollup-plugin-confuser

## Dependencies (3)

- [smob](https://npm.io/package/smob.md) ^1.4.1
- [js-confuser](https://npm.io/package/js-confuser.md) ^1.7.1
- [@rollup/pluginutils](https://npm.io/package/@rollup/pluginutils.md) ^5.0.5

## 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

- 1.0.1 (latest) — 2023-12-04
- 1.0.0 — 2023-11-23

## README

# rollup-plugin-confuser

Obfuscate your project using [JS Confuser](https://github.com/MichaelXF/js-confuser).

## Installation

npm:

```console
npm i rollup-plugin-confuser -D
```

yarn:

```console
yarn add rollup-plugin-confuser -D
```

pnpm:

```console
pnpm add rollup-plugin-confuser -D
```

## Usage

```js
import confuser from "rollup-plugin-confuser";

export default {
  input: "src/index.js",
  output: {
    dir: "output",
    format: "cjs"
  },
  plugins: [
    confuser({
      global: false,
      include: ["src/index.js"]
    })
  ]
};
```

## Options

### `global`

Type: `boolean` <br>
Default: `true`

If set to `true` the plugin will obfuscate the whole project, including all the dependencies.

### `options`

Type: `boolean` <br>
Default: `true`

Custom js-confuser options, you can see all the available options in their [documentation](https://github.com/MichaelXF/js-confuser#options).

### `exclude`

Type: `String` | `Array[...String]`<br>
Default: `null`

A [picomatch pattern](https://github.com/micromatch/picomatch), or array of patterns, which specifies the files in the build the plugin should _ignore_. By default no files are ignored.

### `include`

Type: `String` | `Array[...String]`<br>
Default: `null`

A [picomatch pattern](https://github.com/micromatch/picomatch), or array of patterns, which specifies the files in the build the plugin should operate on. By default all files are targeted.

## Information

### Resources

- [Github](https://github.com/AngeloCore/rollup-plugin-confuser)
- [Rollup](https://rollupjs.org/)
- [JS Confuser](https://github.com/MichaelXF/js-confuser)

Made by [Angelo II](https://github.com/AngeloCore)

Copyright © (C) Angelo II, MIT license.

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