Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rollup-plugin-confuser

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-confuser

Obfuscate your project using js-confuser.

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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.

Keywords

FAQs

Package last updated on 04 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc