rollup-plugin-confuser
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

rollup-plugin-confuser

Obfuscate your project using JS Confuser.

Installation

npm:

npm i rollup-plugin-confuser -D

yarn:

yarn add rollup-plugin-confuser -D

pnpm:

pnpm add rollup-plugin-confuser -D

Usage

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
Default: true

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

options

Type: boolean
Default: true

Custom js-confuser options, you can see all the available options in their documentation.

exclude

Type: String | Array[...String]
Default: null

A picomatch pattern, 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]
Default: null

A picomatch pattern, or array of patterns, which specifies the files in the build the plugin should operate on. By default all files are targeted.

Information

Resources

Made by Angelo II

Copyright © (C) Angelo II, MIT license.

Package Sidebar

Install

npm i rollup-plugin-confuser

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

4.81 kB

Total Files

5

Last publish

Collaborators

  • angelocore