
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
jeffuscator
Advanced tools
Obfuscate JavaScript by renaming all variables and methods to different variations of 'Jeff'.
Obfuscate JavaScript by renaming all variables and methods to different variations of 'Jeff'. Inspired by this tweet from Evil Elon Musk.
var firstNum = 1;
var secondNum = 2;
var added = add(firstNum, secondNum);
function add(a, b)
{
return a + b;
}
var jeff = 1;
var jeffrey = 2;
var jefferey = jeffeory(jeff, jeffrey);
function jeffeory(jeffy, jefrey)
{
return jeffy + jefrey;
}
Install Jeffuscator with NPM:
npm install jeffuscator
If you're only interested in the CLI functionality, you may wish to install globally.
You can import Jeffuscator into your project with:
var Jeffuscator = require('jeffuscator');
To Jeffuscate code, instantiate a new instance of the class with an input, then call the processFiles
method. processFiles
optionally accepts an output path.
new Jeffuscator('path/to/my/files')
.processFiles('path/to/output/folder')
The input argument can be either a folder or a file. If passed a folder, it will process every .js
file in that folder.
The output path should always be a folder. Processed files will be saved to the output folder, retaining the same structure as the input folder.
Once installed, you should be able to use Jeffuscator from the command line using the jeffuscate
command:
jeffuscate -i path/to/my/input -o path/to/my/output
Jeffuscator makes use of a custom fork of UglifyJs v1 that switches out the normal string of characters used for obfuscation, with an array of different variations of the name Jeff.
FAQs
Obfuscate JavaScript by renaming all variables and methods to different variations of 'Jeff'.
We found that jeffuscator 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.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.