1.1.63 • Published 4 years ago

jsmutate v1.1.63

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

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