Secure Exec
Installation & Setup
npm install @computesdk/secure-execUsage
import { secureExec } from '@computesdk/secure-exec';
const compute = secureExec({
memoryLimitMb: 128,
cpuTimeLimitMs: 30_000,
});
// Create sandbox
const sandbox = await compute.sandbox.create();
// Run a command
const result = await sandbox.runCommand('echo "Hello from Secure-Exec!"');
console.log(result.stdout); // "Hello from Secure-Exec!"
// Clean up
await sandbox.destroy();Configuration Options
Supported Operations
Method
Supported
Notes
Notes
Last updated
Was this helpful?