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

jfogs

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jfogs

Javascript code obfuscator

  • 0.0.11
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
445
increased by232.09%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 12 Oct 2015

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