@ice/sandbox
sandbox for execute scripts
Last updated 7 years ago by clarkxia .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @ice/sandbox 
SYNC missed versions from official npm registry.

@ice/sandbox

icestark sandbox solution. icestark docs.

NPM version Package Quality build status Test coverage NPM downloads David deps

Installation

$ npm install @ice/sandbox --save

Usage

import Sandbox from '@ice/sandbox';

const sandbox = new Sandbox();

// execute scripts in sandbox
sandbox.execScriptInSandbox('window.a = 1;console.log(window.a);');

// clear side effects added by sandbox, such as addEventListener, setInterval
sandbox.clear();

Inspiration

@ice/sandbox is inspired by tc39/proposal-realms, realms-shim and qiankun sandbox.

Contributors

Feel free to report any questions as an issue, we'd love to have your helping hand on icestark.

If you're interested in icestark, see CONTRIBUTING.md for more information to learn how to get started.

License

MIT

Current Tags

  • 1.1.5-0                                ...           beta (4 years ago)
  • 1.1.4                                ...           latest (5 years ago)

24 Versions

  • 1.1.5-0                                ...           4 years ago
  • 1.1.4                                ...           5 years ago
  • 1.1.4-0                                ...           5 years ago
  • 1.2.0-1                                ...           5 years ago
  • 1.2.0-0                                ...           5 years ago
  • 1.1.3                                ...           6 years ago
  • 1.1.2-0                                ...           6 years ago
  • 1.1.1                                ...           6 years ago
  • 1.1.1-0                                ...           6 years ago
  • 1.1.0                                ...           6 years ago
  • 1.1.0-1                                ...           6 years ago
  • 1.1.0-0                                ...           6 years ago
  • 1.0.6                                ...           6 years ago
  • 1.0.6-0                                ...           6 years ago
  • 1.0.5                                ...           6 years ago
  • 1.0.4                                ...           7 years ago
  • 1.0.4-0                                ...           7 years ago
  • 1.0.3                                ...           7 years ago
  • 1.0.3-2                                ...           7 years ago
  • 1.0.3-1                                ...           7 years ago
  • 1.0.3-0                                ...           7 years ago
  • 1.0.2                                ...           7 years ago
  • 1.0.1                                ...           7 years ago
  • 1.0.0                                ...           7 years ago
Downloads
Total 53
Today 0
This Week 0
This Month 53
Last Day 0
Last Week 31
Last Month 0
Dependencies (0)
None
Dev Dependencies (4)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE