mirror of
https://github.com/luzhisheng/js_reverse.git
synced 2025-04-23 05:39:22 +08:00
15 lines
293 B
JavaScript
15 lines
293 B
JavaScript
const code = `
|
|
console.log('hello world')
|
|
`
|
|
|
|
const options = {
|
|
domainLock: ['cuiqingcai.com']
|
|
}
|
|
|
|
const obfuscator = require('javascript-obfuscator')
|
|
|
|
function obfuscate(code, options) {
|
|
return obfuscator.obfuscate(code, options).getObfuscatedCode()
|
|
}
|
|
|
|
console.log(obfuscate(code, options)) |