{"name":"@ice/sandbox","version":"1.1.2-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"},"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-lab.github.io/icestark/).\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.1.2-0","_nodeVersion":"14.0.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-CqUYD7/+rgUInrYavBONUUpIdSyGbY3wAVybhA9990opEvX7gXolVJ3o4YHD1eKBIxDYyU+6c6RFZAhN9VGGpw==","shasum":"089279627758d99b955b24921e8f4907480fc05f","tarball":"http://registry-npm.ywwl.com/@ice/sandbox/download/@ice/sandbox-1.1.2-0.tgz","fileCount":5,"unpackedSize":13218,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgok5yCRA9TVsSAnZWagAAG28P/ilIs9DLjRkaBA+y2aq6\najAXQbQ1grvkN/8laOU7fCAGkBAS8HjpFKxlkuyPyPxaNb1ZZ2+BJTQVvCCv\nONfNATzDRc90VgNixc1xM9tdV6alK1mkhYDJ7+mWYMcarIDJDoyW1M63GX06\nY66rmPYJEyN51+sPcSt5lEEkWP12+yuO+0EPXaYHerdiUhRumIIT+kpqFlw6\nnNDKHykwCdreM5t2eIT34jj753yP4gDKvSLdqC8CsAtg1ssfBrLRFRw3c0eA\n/erFChP4DO3JJzTlJjeH4elzJnkRkgoLDh56uRAKb5/CUWC6jShKw3swF1Rc\nR3pdAaaljqUySVIye9PMoyffPBew9iA816Bj/p3Ehrlz6yw/jdoW6jTD6ufp\nlvRJUlQJoFuxsV7PobkSZeTlntLxfkWXzvXj52qGAgOn1Dk64oIshCi9UbiM\noLPCKlDvDnlFb1N407BOfDlEis1W79HC1GNb+azsVFCN05cw6FFc5PDvcHO5\npzIy2EHTvCIf1OjNk+FC2Koffh74aVCtEs78dTkPO1drlae5QII+dKv6d3Mq\nHWJTYSEYcKi9HH2KDcTaqm85V6MLEoU5yoo4WkRIxNMmsaZmHhwKBMggIdDo\nMg4Mdzw9OJHQXNs9wg6RfeZyYjPIvpM3bx95AYwvpOCsUxC103/qXmql7fCC\nMVkj\r\n=/Hho\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC55YKArO6PK2acBQIaB+byo5+jc1QA3HgEwmvSjsRrUQIhAI/W8POWDysdU8dkRviFFHhsxXUmwG5uDMlTot7hR9Go"}],"size":4152,"noattachment":false,"key":"/@ice/sandbox/-/@ice/sandbox-1.1.2-0.tgz"},"_npmUser":{"name":"maoxiaoke","email":"thebigyellowbee@qq.com"},"directories":{},"maintainers":[{"name":"sobear","email":"sobear.me@gmail.com"},{"name":"boiawang","email":"zhengwang2314@gmail.com"},{"name":"clarkxia","email":"xiawenwu41@gmail.com"},{"name":"yuanyan","email":"yuanyan.cao@gmail.com"},{"name":"alvinhui","email":"alvin.hui@qq.com"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},{"name":"solojiang","email":"feifeishen1996@gmail.com"},{"name":"chenbin93","email":"chenbinad@gmail.com"},{"name":"maoxiaoke","email":"thebigyellowbee@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sandbox_1.1.2-0_1621249650461_0.7095693071395455"},"_hasShrinkwrap":false,"publish_time":1621249650615,"_cnpm_publish_time":1621249650615,"dist-tags":{"beta":"1.1.5-0","latest":"1.1.4"}}