Socket
Socket
Sign inDemoInstall

jfogs

Package Overview
Dependencies
6
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
11
increased by120%
Maintainers
1
Install size
422 kB
Created
Weekly downloads
 

Readme

Source

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");
     

Build Status NPM version

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"
    -x, --cross               Special character properties (default false)
    -v, --version             Output jfogs version

License

MIT © zswang

Keywords

FAQs

Last updated on 21 Aug 2015

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