-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
29 lines (25 loc) · 927 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
const fetch = require("node-fetch");
async function obfuscate(script, options){
const body = {
"script": script,
"options": {
"AddMemes": options.AddMemes || false,
"PreserveLineInfo": options.PreserveLineInfo || false,
"NoControlFlow": options.NoControlFlow || true,
"EncryptStrings": options.EncryptStrings || false,
"EncryptImportantStrings": options.EncryptImportantStrings || false,
"NoBytecodeCompress": options.NoBytecodeCompress || false,
"Uglify": options.Uglify || false
}
}
const a = await fetch('https://obfuscator.aztupscripts.xyz/api/v1/obfuscate',{
method: 'POST',
body: JSON.stringify(body),
headers: {
'Content-Type': 'application/json'
}
})
const a_json = await a.json();
return a_json;
}
module.exports = {obfuscate: obfuscate}