mirror of
https://github.com/luzhisheng/js_reverse.git
synced 2025-04-22 11:12:48 +08:00
16 lines
311 B
JavaScript
16 lines
311 B
JavaScript
const code = `
|
|
let hello = '1' + 1
|
|
console.log('hello', hello)
|
|
`
|
|
|
|
const options = {
|
|
identifiersPrefix: 'germey'
|
|
}
|
|
|
|
const obfuscator = require('javascript-obfuscator')
|
|
|
|
function obfuscate(code, options) {
|
|
return obfuscator.obfuscate(code, options).getObfuscatedCode()
|
|
}
|
|
|
|
console.log(obfuscate(code, options)) |