@zcorky/sandbox
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

sandbox

NPM version NPM quality Coverage Status Dependencies Build Status Known Vulnerabilities NPM download license issues

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

Install

$ npm install @zcorky/sandbox

Usage

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

API

License

MIT © Moeover

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.34latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.34
0.0.21
0.0.10

Package Sidebar

Install

npm i @zcorky/sandbox

Weekly Downloads

3

Version

0.0.3

License

MIT

Unpacked Size

10.5 kB

Total Files

15

Last publish

Collaborators

  • uniquecolesmith