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

0.0.1-beta.2 • Public • Published

Usage

npm i @icreate/sandbox

Features

  • SandBox:window沙箱

Importing library

You can import the generated bundle to use the whole library generated by this starter:

import SandBox from '@icreate/sanbox'

Usage

import Sandbox from '@icreate/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();

Readme

Keywords

none

Package Sidebar

Install

npm i @icreate/sandbox

Weekly Downloads

2

Version

0.0.1-beta.2

License

MIT

Unpacked Size

76.5 kB

Total Files

10

Last publish

Collaborators

  • liqing1014
  • zhangmenglei
  • zer001
  • jiangbing
  • zhu_enrui
  • flown
  • liuzk
  • hanmeng_mon
  • yujian01
  • z5y
  • dingwei1
  • restlife1994
  • c_zhu
  • wenbei