{"_id":"fortress","_rev":"269048","name":"fortress","description":"Fortress is designed for the defense of client side applications.","dist-tags":{"latest":"0.0.1"},"maintainers":[{"name":"3rdeden","email":""},{"name":"indexzero","email":"charlie.robbins@gmail.com"},{"name":"jcrugzz","email":""},{"name":"v1","email":""}],"time":{"modified":"2023-06-28T12:13:43.000Z","created":"2013-11-26T14:49:57.918Z","0.0.1":"2014-01-03T16:50:15.577Z","0.0.0":"2013-11-26T14:49:57.918Z"},"users":{},"author":{"name":"Arnout Kazemier"},"repository":{"type":"git","url":"git://github.com/3rd-Eden/fortress.git"},"versions":{"0.0.1":{"name":"fortress","version":"0.0.1","description":"Fortress is designed for the defense of client side applications.","main":"index.js","scripts":{"test":"zuul -- test.js","local":"zuul --local 1337 -- test.js","build":"browserify index.js --standalone Fortress -o ./dist/fortress.js","phantomjs":"./phantomjs"},"keywords":["sandbox","fort","fortress","container","iframe","security","jail","sandboxed","restrict"],"author":{"name":"Arnout Kazemier"},"license":"MIT","repository":{"type":"git","url":"git://github.com/3rd-Eden/fortress.git"},"devDependencies":{"pre-commit":"0.0.x","mocha":"1.14.x","zuul":"1.0.x","browserify":"3.0.x","mocha-phantomjs":"3.2.x"},"dependencies":{"eventemitter3":"0.0.x","frames":"0.0.x","containerization":"0.0.x"},"testling":{"browsers":["ie/6..latest","firefox/16..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"],"harness":"mocha","files":"test.js"},"bugs":{"url":"https://github.com/3rd-Eden/fortress/issues"},"_id":"fortress@0.0.1","dist":{"shasum":"7e7969caa98a9cda6486cc1bf9bac125f769ef46","size":83827,"noattachment":false,"key":"/fortress/-/fortress-0.0.1.tgz","tarball":"http://name.csiicloud.com:7001/fortress/download/fortress-0.0.1.tgz"},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"V1","email":"info@3rd-Eden.com"},"maintainers":[{"name":"3rdeden","email":""},{"name":"indexzero","email":"charlie.robbins@gmail.com"},{"name":"jcrugzz","email":""},{"name":"v1","email":""}],"directories":{},"_cnpmcore_publish_time":"2021-12-19T13:24:23.919Z","publish_time":1388767815577,"_cnpm_publish_time":1388767815577},"0.0.0":{"name":"fortress","version":"0.0.0","description":"Fortress is designed for the defense of client side applications.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["sandbox","fort","fortress","container","iframe","security","jail","sandboxed","restrict"],"author":{"name":"Arnout Kazemier"},"license":"MIT","_id":"fortress@0.0.0","dist":{"shasum":"1e8466957db977dd5cf199057a7f8202bd94f802","size":3453,"noattachment":false,"key":"/fortress/-/fortress-0.0.0.tgz","tarball":"http://name.csiicloud.com:7001/fortress/download/fortress-0.0.0.tgz"},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"V1","email":"info@3rd-Eden.com"},"maintainers":[{"name":"3rdeden","email":""},{"name":"indexzero","email":"charlie.robbins@gmail.com"},{"name":"jcrugzz","email":""},{"name":"v1","email":""}],"directories":{},"_cnpmcore_publish_time":"2021-12-19T13:24:22.631Z","publish_time":1385477397918,"_cnpm_publish_time":1385477397918}},"readme":"![fortress](https://raw.github.com/3rd-Eden/fortress/master/fo%CC%88rt.jpg)\n\nFortress is the Docker for front-end applications. It allows you to your code in\na controlled and sandboxed environment. This library was originally designed for\nmy [bigpipe] project which assumes that your front-end is split up in different\npagelets or containers and each of these containers run it's own code.\n\n[bigpipe]: https://github.com/3rd-Eden/bigpipe\n\nThis project has the following ambitious goals:\n\n- Sandbox your code and it's used JavaScript primitives so other code will not\n  be affected when you extend `Array.prototype` with new methods. Nor will you\n  be affected by their changes.\n- Other code from getting broken or stopped when an error occurs in side your\n  own client code.\n- Provide a retry and reload of your code when one of these errors occurs.\n- Greater control over memory usage for single page applications as memory is\n  released when the container is destroyed.\n- Prevent mixing of `console.*` messages as each outputted in their own\n  container.\n\n## Installation\n\nWhile this library can only be used in browser environments, it's downloadable\nthrough `npm` so it can work browserify and other packaging systems. So to get\nit through npm, simply run:\n\n```\nnpm install fortress\n```\n\nFor all other use cases, I would advice you to download the `index.js` from the\nlatest stable tag. But if you are feeling adventures, you can also try the\n`master` branch.\n\n## Quick start\n\n```js\n'use strict';\n\n//\n// @TODO write actual documentations instead of this api listing.\n// \nvar fort = new Fortress({ options });\n\n//\n// fort.all returns all created containers.\n//\nfort.all();\n\n//\n// fort.id returns the container based on the id.\n//\nfort.id(id);\n\n//\n// fort.create creates a new container. If code is supplied it will\n// automatically start the newly created container. The options allows you\n// control how the container is created and which restrictions it should force\n// upon the code.\n//\n// This method returns the created `Container` instance so it can be manually\n// controlled for greater control.\n//\nfort.create('var code = 1', { options });\n\n//\n// Start the container based on the id given.\n//\nfort.start(id);\n\n//\n// Stop the container based on the given id.\n//\nfort.stop(id);\n\n//\n// Restart the container. This is the same as stopping and starting your\n// container.\n//\nfort.restart(id);\n\n//\n// When you stop a container it merely removes it from DOM. It does not mean it\n// has been destroyed completely. If you never want to run this container again,\n// kill it.\n//\nfort.kill(id);\n```\n\n## License\n\nThis work is released under MIT. Pull request, contributions and bug reports are\nencouraged.\n","_attachments":{},"bugs":{"url":"https://github.com/3rd-Eden/fortress/issues"},"license":"MIT"}