New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

js-obfuscate

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-obfuscate

## Table of Contents * [Overview](#overview) * [Installation](#installation)

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

js-obfuscate

Table of Contents

  • Overview
  • Installation

Overview

With the help of this package you can obfuscate your all javascript files, in given directiory path.

So follow the instructions and enjoy effortless obfuscation process.

Installation

The javascript code obfuscation is available on npm as js-obfuscate:

$ npm install --save js-obfuscate

Usage

To use the module in your application, require it from any JavaScript file:

var codeObfuscate = require("js-obfuscate");

There is only one method

  • obfuscateJS(dir_name): This method use for code ofuscation. There is one parameter dir_name.

  • The value of this parameter is diractory path. After execution code the all files will obfuscate under this folder.

`Eg: var codeObfuscate = require("js-obfuscate");

var res = obfus.obfuscateJS("./test1",[".js"])

console.log(res) `

Here test1 is folder which contains many javascript files.

And see, what happens :D , your directories all files hs obfuscated.

FAQs

Package last updated on 11 Nov 2021

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