Package Exports
- luasec-npm-api
- luasec-npm-api/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (luasec-npm-api) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
LuaSec NPM Package
LuaSec is a powerful obfuscation tool for Lua scripts, designed to enhance security and protect your code from tampering and reverse engineering. This package provides an easy-to-use API for integrating LuaSec obfuscation into your Node.js projects.
Installation
Prerequisites
- Node.js (version 18 or higher)
- npm or yarn package manager
Install via npm
npm install luasec-npm-apiUsage / Benutzung
Example / Beispiel
import { LuaSecAPI } from 'luasec-npm-api';
const apiKey = 'LUASEC-XXXXX-XXXX-XXXX-XXXX-XXXXXXX';
const luaSec = new LuaSecAPI(apiKey);
const payload = {
script: 'print("evikookie and qnx say hello")',
platformLock: 'lua',
antiTamper: true,
encryptStrings: true
};
async function obfuscateScript() {
try {
const result = await luaSec.obfuscate(payload);
console.log('Obfuscation successful:', result);
} catch (error) {
console.error('Obfuscation error:', error.message);
}
}
obfuscateScript();Methods / Funktionen
obfuscate(payload: Payload): Promise<Result>
Obfuscates the given script.
getApiKeyInfo(): Promise<ApiKeyInfo>
TODO
getObfuscations(): Promise<Obfuscation[]>
TODO
License
This project is licensed under the MIT License.