{"name":"@ice/sandbox","version":"1.0.4-0","description":"sandbox for execute scripts","main":"lib/index.js","scripts":{"build":"rm -rf lib && tsc","watch":"tsc -w","prepublishOnly":"npm run test && npm run build","test":"NODE_ENV=unittest jest","coverage":"codecov"},"repository":{"type":"git","url":"git+https://github.com/ice-lab/icestark.git"},"publishConfig":{"registry":"http://registry.npmjs.com/"},"keywords":["sandbox","icestark"],"license":"MIT","bugs":{"url":"https://github.com/ice-lab/icestark/issues"},"homepage":"https://github.com/ice-lab/icestark#readme","husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"devDependencies":{"codecov":"^3.4.0","jest":"^25.2.7","ts-jest":"^25.3.1","typescript":"^3.8.3"},"jest":{"coverageDirectory":"./coverage/","collectCoverage":true,"preset":"ts-jest"},"readme":"# @ice/sandbox\n\n> icestark sandbox solution. [icestark docs](https://ice.work/docs/icestark/about).\n\n[![NPM version](https://img.shields.io/npm/v/@ice/sandbox.svg?style=flat)](https://npmjs.org/package/@ice/sandbox) [![Package Quality](https://npm.packagequality.com/shield/@ice%2Fsandbox.svg)](https://packagequality.com/#?package=@ice%2Fsandbox) [![build status](https://img.shields.io/travis/ice-lab/icestark.svg?style=flat-square)](https://travis-ci.org/ice-lab/icestark) [![Test coverage](https://img.shields.io/codecov/c/github/ice-lab/icestark.svg?style=flat-square)](https://codecov.io/gh/ice-lab/icestark) [![NPM downloads](http://img.shields.io/npm/dm/@ice/sandbox.svg?style=flat)](https://npmjs.org/package/@ice/sandbox) [![David deps](https://img.shields.io/david/ice-lab/icestark.svg?style=flat-square)](https://david-dm.org/ice-lab/icestark)\n\n## Installation\n\n```bash\n$ npm install @ice/sandbox --save\n```\n\n## Usage\n\n```js\nimport Sandbox from '@ice/sandbox';\n\nconst sandbox = new Sandbox();\n\n// execute scripts in sandbox\nsandbox.execScriptInSandbox('window.a = 1;console.log(window.a);');\n\n// clear side effects added by sandbox, such as addEventListener, setInterval\nsandbox.clear();\n```\n\n## Inspiration\n\n`@ice/sandbox` is inspired by [tc39/proposal-realms](https://github.com/tc39/proposal-realms), [realms-shim](https://github.com/Agoric/realms-shim) and [qiankun sandbox](https://github.com/umijs/qiankun).\n\n## Contributors\n\nFeel free to report any questions as an [issue](https://github.com/ice-lab/icestark/issues/new), we'd love to have your helping hand on `icestark`.\n\nIf you're interested in `icestark`, see [CONTRIBUTING.md](https://github.com/alibaba/ice/blob/master/.github/CONTRIBUTING.md) for more information to learn how to get started.\n\n## License\n\n[MIT](LICENSE)\n","readmeFilename":"README.md","_id":"@ice/sandbox@1.0.4-0","_nodeVersion":"11.10.1","_npmVersion":"6.7.0","dist":{"integrity":"sha512-aEDnnaXGHEu2rrgZqH3uOs+EapJokJsC89wGMf/ygc9y/kJNGW3rMR7841O9Gm0aCHRNcKck9Q2zwW5vugJlPA==","shasum":"470bba7c8bfa63b16fadba1da7ff880bd1e00766","tarball":"http://registry-npm.ywwl.com/@ice/sandbox/download/@ice/sandbox-1.0.4-0.tgz","fileCount":5,"unpackedSize":17228,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJetPvPCRA9TVsSAnZWagAA/bAP/iqknemg+6ZO6BJw8rPx\npsIuLQDqZAz0MluPxdLHRTGFgGLTv0tjp2aZTLwIk9bAAftShQoc9UpyJYpx\n0J0yxubeCzl39B2C+jXgFnRHFmINbLNdDdqiwL2LD9pPqczQUhyPKiFoQ0B5\nsyEK0vA4S/w8fCFsU1IQy7JbWa2uKvdHUqd4rFn85psuq0Yxi/CX7A/o1xcE\n5JQvGbkGKsR7Ygu6Ut4f94fnxTp/FQjZNKTg9UBt9/eibkp1TG+KBF5Hl1mJ\ng2jeTygbXPxsXWij4+MX5xcTvWe//k2XtJdnY7o5xCuHfjv80neU2eBiO7B0\nVHOYea/lyDgLeWwkRDLt3KugMcYlae7EGObmWYPycDcjwmckLX2LDxE82Bpy\nci6Ix28QEj65wCdnS+0W5tffZPjnFAwcuMSHP9a/BkOHNqJkFDYmAx14YX5Y\nC1uU8k0fEkkwBpApXRjdVb0DXY6l1l1N8euN+j4E+LRbh99HIaOpVxzowFBW\nv6GCU9/jjkOSEdBTpbIZ2DhikxqpAt3J440/+E1jm7eKY537pxU3ovneo6Lr\nQc3r3nJ7rqQqF5LAY22xIzUeaa3KuUwSNtj99cfd3sLjV+fPX8RiJbElRmyQ\nF8dPXoUMXD3/hWrehomG9lfHdgbExOKjV7I7wgHU40JaPqKGRhSNbR//h1eY\njcc4\r\n=Iu+a\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDGrhUk2b3c+mbXa7AocrzV1z+UAAi2Y2JaLUJRhg7brgIhAMIR5jA0WMQ02d47uzRo0YBmUmVRceIcBGjkNjfrK8rT"}],"size":5200,"noattachment":false,"key":"/@ice/sandbox/-/@ice/sandbox-1.0.4-0.tgz"},"maintainers":[{"name":"alvinhui","email":"alvin.hui@qq.com"},{"name":"boiawang","email":"zhengwang2314@gmail.com"},{"name":"clarkxia","email":"xiawenwu41@163.com"},{"name":"lip966","email":"wddpwzz36@gmail.com"},{"name":"oraaange","email":"oraaangecolin@gmail.com"},{"name":"sobear","email":"sobear.me@gmail.com"},{"name":"temper357","email":"temper357@gmail.com"},{"name":"yuanyan","email":"yuanyan.cao@gmail.com"},{"name":"yundong","email":"yundong.me@gmail.com"}],"_npmUser":{"name":"clarkxia","email":"xiawenwu41@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sandbox_1.0.4-0_1588919247293_0.4729282693238084"},"_hasShrinkwrap":false,"publish_time":1588919247397,"_cnpm_publish_time":1588919247397,"dist-tags":{"beta":"1.1.5-0","latest":"1.1.4"}}