Socket
Socket
Sign inDemoInstall

jfogs

Package Overview
Dependencies
17
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    jfogs

Javascript code obfuscator


Version published
Weekly downloads
34
increased by385.71%
Maintainers
1
Install size
1.63 MB
Created
Weekly downloads
 

Readme

Source

NPM version Build Status Coverage Status

jfogs

Javascript code obfuscator

一个 JS 代码混淆器

e.g.

  • input:
console.log(/\w/img.test('hello'));
  • output:
(function ($fog$0, $fog$1, $fog$2, $fog$3) {
  console[$fog$0]($fog$2[$fog$1]($fog$3));
})("log", "test", /\w/img, "hello");

Install

$ npm install --save jfogs

Usage

var jfogs = require('jfogs');

console.log(jfogs.obfuscate('function hello() { console.log('Hello world!'); }'));
$ npm install --global jfogs
$ jfogs --help

Command Line

Usage:

    jfogs <input list> [options]

Options:

    -o, --output              Output file (default STDOUT)
    -t, --type                Encryption type (default "") e.g. "zero" | "reverse"
    -v, --version             Output jfogs version

License

MIT © zswang

Keywords

FAQs

Last updated on 04 Jan 2019

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