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

1.1.4 • Public • Published

@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

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i @ice/sandbox

    Weekly Downloads

    75

    Version

    1.1.4

    License

    MIT

    Unpacked Size

    13.9 kB

    Total Files

    5

    Last publish

    Collaborators

    • linbudu
    • answershuto
    • chenjun1011
    • luhengchang228
    • sobear
    • clarkxia
    • rax-publisher