🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

snowpack-javascript-obfuscator

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

snowpack-javascript-obfuscator

Obfuscate your JavaScript files with the javascript-obfuscator npm package

1.1.31
latest
npm
Version published
Weekly downloads
13
Maintainers
1
Weekly downloads
 
Created
Source

snowpack-javascript-obfuscator

Obfuscate your JavaScript files when bundling with Snowpack.

Install

npm

npm i -D snowpack-javascript-obfuscator

Options

OptionTypeDescription
filesToObfuscatearrayAn array of files to obfuscate, relative to your public directory.
jsObfuscatorOptsobjectjavascript-obfuscator options, reference: https://www.npmjs.com/package/javascript-obfuscator

Example usage

snowpack.config.js

module.exports = {
  // ...
  plugins: [
    // ...
    [
      "snowpack-javascript-obfuscator",
      {
        filesToObfuscate: ["app.js", "utils.js"],
        jsObfuscatorOpts: {
          splitStrings: true,
          stringArray: true,
          stringArrayEncoding: ["base64"],
        },
      },
    ],
  ],
  // ...
};

Keywords

javascript

FAQs

Package last updated on 15 Feb 2022

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