fiizii / psu-nodejs

NodeJS Wrapper for the PSU Api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

psu-nodejs

NodeJS Wrapper for the PSU Api
Example Usage:

const PSU = require('./index.js') // replace with psu-nodejs
const wrapper = new PSU('API Token from psu.dev');
(async () => {
  let a = await wrapper.obfuscate("print('e')", {
            "DisableSuperOperators": false,
            "MaximumSecurityEnabled": false,
            "EncryptAllStrings": false,
            "DisableAllMacros": false,
            "EnhancedOutput": false,
            "CompressedOutput": false,
            "PremiumFormat": false,
            "ByteCodeMode": "Default"
        }, true // true for script return only, remove if you want the json object (or set to false)
    )
  console.log(a)
  
  
  let b = await wrapper.obfuscate(["print('e')","print('xd')", "print(game.Players.LocalPlayer.name)"], {
            "DisableSuperOperators": false,
            "MaximumSecurityEnabled": false,
            "EncryptAllStrings": false,
            "DisableAllMacros": false,
            "EnhancedOutput": false,
            "CompressedOutput": false,
            "PremiumFormat": false,
            "ByteCodeMode": "Default"
        }, true // true for script return only, remove if you want the json object (or set to false)
    )
    // returns an array of promises
    console.log(...b)

})()

Made by Agent#9895 & improved by 1nch#6969
https://www.npmjs.com/package/psu-nodejs

About

NodeJS Wrapper for the PSU Api


Languages

Language:JavaScript 100.0%