
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
@rbf/parcel-optimizer-javascript-obfuscator
Advanced tools
Optimizer plugin for Parcel v2 to obfuscate JavaScript files using javascript-obfuscator.
javascript-obfuscator
Optimizer plugin for Parcel v2 to obfuscate
JavaScript files using
javascript-obfuscator
.
This plugin is based on
jabuco/parcel-plugin-obfuscate
,
which as of this writing is only compatible with Parcel
v1.
You can specify the
options
for javascript-obfuscator
in a file named javascript-obfuscator.config.json
at the root of your project.
{
"compact": true,
"controlFlowFlattening": false,
"deadCodeInjection": false,
"debugProtection": false,
"disableConsoleOutput": false,
"forceTransformStrings": [],
"inputFileName": "",
"selfDefending": false,
"simplify": true,
"sourceMap": false,
"splitStrings": true,
"splitStringsChunkLength": 10,
"stringArray": true,
"stringArrayCallsTransform": true,
"stringArrayCallsTransformThreshold": 0.5,
"stringArrayEncoding": [
"base64",
"rc4"
],
"stringArrayIndexesType": [
"hexadecimal-number"
],
"stringArrayIndexShift": true,
"stringArrayRotate": true,
"stringArrayShuffle": true,
"stringArrayWrappersCount": 1,
"stringArrayWrappersChainedCalls": true,
"stringArrayWrappersParametersMaxCount": 2,
"stringArrayWrappersType": "variable",
"stringArrayThreshold": 0.75,
"target": "browser",
"unicodeEscapeSequence": false
}
Include the plugin in your .parcelrc
and Parcel will
automatically download and install it from npm when necessary.
{
"extends": "@parcel/config-default",
"optimizers": {
"*.js": [
"...",
"@rbf/parcel-optimizer-javascript-obfuscator"
]
}
}
[0.2.2] - 2022-02-11
Explicitly add @parcel/plugin
dependency to package.json
as suggested by the following warning:
console: (node:1820) [MODULE_NOT_FOUND] Error:
@rbf/parcel-optimizer-javascript-obfuscator tried to access @parcel/plugin,
but it isn't declared in its dependencies; this makes the require call
ambiguous and unsound.
Note that its version is unpinned on purpose (i.e. version requirement in
package.json
is ^2.3.1
instead of 2.3.1
) to avoid having to release in
sync with Parcel.
FAQs
Optimizer plugin for Parcel v2 to obfuscate JavaScript files using javascript-obfuscator.
The npm package @rbf/parcel-optimizer-javascript-obfuscator receives a total of 278 weekly downloads. As such, @rbf/parcel-optimizer-javascript-obfuscator popularity was classified as not popular.
We found that @rbf/parcel-optimizer-javascript-obfuscator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.