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

jeffuscator

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jeffuscator

Obfuscate JavaScript by renaming all variables and methods to different variations of 'Jeff'.

  • 1.2.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Build Status

Jeffuscator

Obfuscate JavaScript by renaming all variables and methods to different variations of 'Jeff'. Inspired by this tweet from Evil Elon Musk.

Example

Before:

var firstNum = 1;
var secondNum = 2;

var added = add(firstNum, secondNum);

function add(a, b)
{
    return a + b;
}

After:

var jeff = 1;
var jeffrey = 2;

var jefferey = jeffeory(jeff, jeffrey);

function jeffeory(jeffy, jefrey)
{
    return jeffy + jefrey;
}

Installation

Install Jeffuscator with NPM:

npm install jeffuscator

If you're only interested in the CLI functionality, you may wish to install globally.

Usage

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.

CLI Usage

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

Under the Hood

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.

Keywords

FAQs

Package last updated on 27 Nov 2018

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