is-uglified

1.0.2 • Public • Published

is-uglified

Detect if a javascript file is uglified

How?

We use Mean Identify Length measure. For one handwriting javascript file, the average length of identifiers MUST bigger than it of an uglified one.

E.g.,

We set the threshold value default to 3, detecting whether a javascript file is uglified.

Installing

npm install is-uglified

Usage

import isUglified from 'is-uglified';
 
isUglified('local_file_to_detect.js') // get result;

Readme

Keywords

none

Package Sidebar

Install

npm i is-uglified

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

3.15 kB

Total Files

4

Last publish

Collaborators

  • raohai