A minimal API wrapper for localsandboxs, inspired by tsironis/lockr and marcuswestin/store.js. It is written fully with Typescript.
- 🕒 Simple API, Easy to Use
- 🔥 TypeScript
$ npm install @zcorky/sandbox
import createSandbox from '@zcorky/sandbox';
// prepare raw
const code = `return a + b`;
// create sandbox
const sandbox = createSanbox(code);
// run sandbox
sandbox({ a: 1, b: 2 }); // => 3
- See the detailed API Reference.
MIT © Moeover