jsmutate
v1.1.63
Published
- hide global window object
Downloads
12
Readme
A js obfuscate tool
- hide global window object
Install
npm install @secure/jsmutate --dev
Build
npm run build
Usage
const { foldSeq } = require('@secure/jsmutate')
const { readFileSync, writeFileSync } = require('fs')
const path = require('path')
let js = readFileSync(path.resolve(__dirname, 'a.js'), 'utf8')
let r = foldSeq(js, { foldSeqExp: true })
writeFileSync(path.resolve(__dirname, 'b.js'), r.code)
writeFileSync(path.resolve(__dirname, 'b.json'), JSON.stringify(r.stringMap, null, 2))
Options
see transformOptionsDefault
in ./index.js
Test
npm test