Socket
Socket
Sign inDemoInstall

basic-webpack-obfuscator

Package Overview
Dependencies
6
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    basic-webpack-obfuscator


Version published
Weekly downloads
0
Maintainers
1
Created
Weekly downloads
 

Readme

Source

basic-webpack-obfuscator

npm version

A simple solution to obfuscate the strings in your Webpack scripts. This isn't a complete obfuscator nor a good one, simple RC4 is used to "obfuscate" your strings.

Technicals

We hook Compilation.PROCESS_ASSETS_STAGE_DEV_TOOLING and modify files matching .js and .mjs.

Usage

webpack.config.js:

import BasicWebpackObfuscator from 'basic-webpack-obfuscator';
import type { Configuration } from 'webpack';

const webpackConfig: Configuration = {
	// ...
	plugins: [
		new BasicWebpackObfuscator({
			sourceMap: true,
			compact: true,
		}),	
	],
	// ...
};

Options

Options can be found in the type definitions (browse node_modules or just read src/index.ts).

FAQs

Last updated on 27 Aug 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc