@secure-exec/typescript companion package runs the TypeScript compiler inside a sandbox for safe type checking and compilation of untrusted code.
Install
Setup
| Option | Type | Default | Description |
|---|---|---|---|
systemDriver | SystemDriver | required | Compiler runtime capabilities and filesystem view |
runtimeDriverFactory | NodeRuntimeDriverFactory | required | Creates the compiler sandbox |
memoryLimit | number | 512 | Compiler isolate memory cap in MB |
cpuTimeLimitMs | number | Compiler CPU time budget in ms | |
compilerSpecifier | string | "typescript" | Module specifier for the TypeScript compiler |