Package created to analyze JavaScript literals
npm install @nodesecure/sec-literal
This package is a security utilities library created to analyze ESTree Literal and JavaScript string primitive.
- Detect Hexadecimal, Base64, Hexa and Unicode sequences.
- Detect patterns (prefix, suffix) on groups of identifiers.
- Detect suspicious string and return advanced metrics on it (char diversity etc).
This package is available in the Node Package Repository and can be easily installed with npm or yarn.
``bash`
$ npm i @nodesecure/sec-literalor
$ yarn add @nodesecure/sec-literal
`js``
Hex.isSafe("1234"); // true
Hex.isSafe("abcdef"); // true