{"name":"@ice/sandbox","version":"1.0.6-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.6-0","_nodeVersion":"11.10.1","_npmVersion":"6.7.0","dist":{"integrity":"sha512-yGWZnhmBmsWEOoNkbh/rnptXZC4rfLFQwJdNbvEwllAlLLpXOuftuvdphlyhu2Z4k5BlvqxoO17EdZ7hw5s9bQ==","shasum":"398dee77b311fc6a86c37b6f5bf60b75aea626c4","tarball":"http://registry-npm.ywwl.com/@ice/sandbox/download/@ice/sandbox-1.0.6-0.tgz","fileCount":5,"unpackedSize":17543,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe6ZqxCRA9TVsSAnZWagAA6lYP/3uvp8XFp/BvGeyPr0MI\nmxFigNF4Xu1ki1hBcxynZTDFmMSGYgSXnDZmWlMIlhuYT1MIaQ4LW9n04D9n\nENXe9r8NZ3c/JCmwK81fzNprXlgQDVZ6S02Ola59ckBjkwr63eQDuoD4GaaW\nUdcD0VwJTDe1r4inlgVsX+wkVOkYWP6mYVFE/40RTmXbRc7/+98y+IaCTDBK\nbzfG1yYdZMRAkTnSUi+4UpavCCaI+zKm9Y9MOA2gIdyyWjP62Lt9ebC8qX+X\nG/qhmLUSCczw7ucw/CRZyJPk1Frr6U3azlt6Dj657vPvc8ee2XOenKMxHVvf\nJ+xzs8QrWWhExDnwMvzLOGBqSJUa7ejPCl4Myl+KJmn1T+Spd7GSBI20R7qt\nF6uegkgNRKwniIUJv00Us3Gk+Uw3fTCcI4SpIQWwdARUmTR5nQWg6hECSzcx\nDsN3MvgaLFC69+Sq9ol2JT8IPxLetix2Nn7SfavM0qpRE3dnVO6eH+Xb+NbQ\nmXtef5EwmFAL71gb2I6LHic3HzMYCtE5s3EZE21zBNei6oBj67o13evcB/vq\n5zsHK+WOZrxMcLipG8vPr5RE7neS/HKIIvapkeeexjifWuYsADJRddM/RXRt\n7p7iAkAB621F/XsKfH7V4ruL7uTuca8ihkL4BhtGjCq8WcXIHbj+pjPhzyUM\n854g\r\n=fkdp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAU5reWYB/9+g+mr5lN7O16YEoRsy5l7vf4mJNn8ipCkAiBDNO5GfAF1q3N964aI3IJl9E6r0tuxSSYrBcyK6ZKkWQ=="}],"size":5285,"noattachment":false,"key":"/@ice/sandbox/-/@ice/sandbox-1.0.6-0.tgz"},"maintainers":[{"email":"alvin.hui@qq.com","name":"alvinhui"},{"email":"zhengwang2314@gmail.com","name":"boiawang"},{"email":"xiawenwu41@gmail.com","name":"clarkxia"},{"email":"oraaangecolin@gmail.com","name":"oraaange"},{"email":"rax-public@alibaba-inc.com","name":"rax-publisher"},{"email":"sobear.me@gmail.com","name":"sobear"},{"email":"yuanyan.cao@gmail.com","name":"yuanyan"}],"_npmUser":{"name":"clarkxia","email":"xiawenwu41@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sandbox_1.0.6-0_1592367793360_0.4065631837927999"},"_hasShrinkwrap":false,"publish_time":1592367793475,"_cnpm_publish_time":1592367793475,"dist-tags":{"beta":"1.1.5-0","latest":"1.1.4"}}