{"_id":"restrict","_rev":"30-176a7e13f7a052db6db4f65805504daf","name":"restrict","description":"Restricts applications from calling certain methods on process and all methods on child_process","dist-tags":{"latest":"0.0.9"},"versions":{"0.0.1":{"name":"restrict","description":"Restricts applications from calling certain methods on process and all methods on child_process","version":"0.0.1","author":{"name":"Rohini Harendra","email":"rohini.raghav@gmail.com"},"repository":{"type":"git","url":"https://github.com/yahoo/restrict.git"},"bugs":{"url":"http://github.com/yahoo/restrict/issues"},"keywords":["restrict","yahoo"],"licenses":[{"type":"BSD","url":"https://github.com/yahoo/restrict/blob/master/LICENSE"}],"engines":{"node":">=0.6"},"dependencies":{},"devDependencies":{"jshint":"~0.9.0","yui-lint":"~0.1.1","istanbul":"~0.1.8","vows":"*"},"main":"./lib/index.js","scripts":{"pretest":"jshint --config ./node_modules/yui-lint/jshint.json ./lib/","test":"istanbul cover --print both vows -- --spec ./tests/*.js"},"_id":"restrict@0.0.1","dist":{"shasum":"750c55aa892b1137d50c6e70cad624e1e4d1b232","tarball":"https://registry.npmjs.org/restrict/-/restrict-0.0.1.tgz","integrity":"sha512-pTcImtq/Zx8eIoI4tcyKQNdRj1ifR0NLjWTJj4fxxIpjhChsOSjGot0af7ZrYRZjg7TMeD3FuUjORX2vfKaB1Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC18LMBoakF34OTP+mskjafqCUtLfdPj6LtvQaIbyANfgIgUK/yOr2EW1h1+BiaTMfBvUHVWtpSV2BgrrZ8p0VL1uc="}]},"_from":"node-restrict","_npmVersion":"1.3.8","_npmUser":{"name":"rohiniwork","email":"rohini.raghav@gmail.com"},"maintainers":[{"name":"rohiniwork","email":"rohini.raghav@gmail.com"}],"directories":{}},"0.0.2":{"name":"restrict","description":"Restricts applications from calling certain methods on process and all methods on child_process","version":"0.0.2","author":{"name":"Rohini Harendra","email":"rohini.raghav@gmail.com"},"repository":{"type":"git","url":"https://github.com/yahoo/restrict.git"},"bugs":{"url":"http://github.com/yahoo/restrict/issues"},"keywords":["restrict","yahoo"],"licenses":[{"type":"BSD","url":"https://github.com/yahoo/restrict/blob/master/LICENSE"}],"engines":{"node":">=0.6"},"dependencies":{},"devDependencies":{"jshint":"~0.9.0","yui-lint":"~0.1.1","istanbul":"~0.1.8","vows":"*"},"main":"./lib/index.js","scripts":{"pretest":"jshint --config ./node_modules/yui-lint/jshint.json ./lib/","test":"istanbul cover --print both vows -- --spec ./tests/*.js"},"_id":"restrict@0.0.2","dist":{"shasum":"1b15dc459f48880d26e14caed5950b48fd56ba90","tarball":"https://registry.npmjs.org/restrict/-/restrict-0.0.2.tgz","integrity":"sha512-npWZAfHdA3ppsc9b/LcgzxOWoSdd88ObWw/eymy28N8LVj67+7wCI2vWOtLhzzsiJFMmBgUH+8YzfAcd+97o4Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDuBM3Gj/RItlb2UTbRG4FzrZ2lanCg24rGNPcwGfzW4QIhAK1yEHVdJeleerbpJ7i6NBTdamg4vF1FS5MaC4KTgq60"}]},"_from":"node-restrict/","_npmVersion":"1.3.8","_npmUser":{"name":"rohiniwork","email":"rohini.raghav@gmail.com"},"maintainers":[{"name":"rohiniwork","email":"rohini.raghav@gmail.com"}],"directories":{}},"0.0.3":{"name":"restrict","description":"Restricts applications from calling certain methods on process and all methods on child_process","version":"0.0.3","author":{"name":"Rohini Harendra","email":"rohini.raghav@gmail.com"},"repository":{"type":"git","url":"https://github.com/yahoo/restrict.git"},"bugs":{"url":"http://github.com/yahoo/restrict/issues"},"keywords":["restrict","yahoo"],"licenses":[{"type":"BSD","url":"https://github.com/yahoo/restrict/blob/master/LICENSE"}],"engines":{"node":">=0.6"},"dependencies":{},"devDependencies":{"jshint":"~0.9.0","yui-lint":"~0.1.1","istanbul":"~0.1.8","vows":"*"},"main":"./lib/index.js","scripts":{"pretest":"jshint --config ./node_modules/yui-lint/jshint.json ./lib/","test":"istanbul cover --print both vows -- --spec ./tests/*.js"},"homepage":"https://github.com/yahoo/restrict","_id":"restrict@0.0.3","dist":{"shasum":"11fb357d8f522ebdb7fb78bc1b8fbef73690c021","tarball":"https://registry.npmjs.org/restrict/-/restrict-0.0.3.tgz","integrity":"sha512-WcdDdZIuQTok7i/UCltAQTOF3h2t5L1I7iOVHa72HzTcSyLJKmbEKyNIhBqXsV9ULOtAVOFd7n7EPpg+RjYicg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDDQrZEi6R02V3CdBqKBoNfdXOyQzyY+TdPOo9PfqwUlAIgSs69XJKvmaDqrYd7Agy76rtlsfM5LFk442C1+CI+tko="}]},"_from":"node-restrict","_npmVersion":"1.3.18","_npmUser":{"name":"rohiniwork","email":"rohini.raghav@gmail.com"},"maintainers":[{"name":"rohiniwork","email":"rohini.raghav@gmail.com"}],"directories":{}},"0.0.4":{"name":"restrict","description":"Restricts applications from calling certain methods on process and all methods on child_process","version":"0.0.4","author":{"name":"Rohini Harendra","email":"rohini.raghav@gmail.com"},"repository":{"type":"git","url":"https://github.com/yahoo/restrict.git"},"bugs":{"url":"http://github.com/yahoo/restrict/issues"},"keywords":["restrict","yahoo"],"licenses":[{"type":"BSD","url":"https://github.com/yahoo/restrict/blob/master/LICENSE"}],"engines":{"node":">=0.6"},"dependencies":{},"devDependencies":{"jshint":"~0.9.0","yui-lint":"~0.1.1","istanbul":"~0.1.8","vows":"*"},"main":"./lib/index.js","scripts":{"pretest":"jshint --config ./node_modules/yui-lint/jshint.json ./lib/","test":"istanbul cover --print both vows -- --spec ./tests/*.js"},"homepage":"https://github.com/yahoo/restrict","_id":"restrict@0.0.4","dist":{"shasum":"79f8888446666206f6841d6884667b2dbf512ba8","tarball":"https://registry.npmjs.org/restrict/-/restrict-0.0.4.tgz","integrity":"sha512-dfAk6MU3vlZo/U3v5aatF073gxycxwpahkS/0kxOVd82HQ6v8QVt8qGGx49k2Ap5sQxW5iA+9cjnvH4CTPvHjQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID7x/ayIEUL2zx2n+bVPLaHYzDCxHmZDLVoywmncPtuSAiEA2JCGOGAZ8N5KMB8epocxG6vnxL6K7fTR3PUYNKGSvWs="}]},"_from":"node-restrict","_npmVersion":"1.3.18","_npmUser":{"name":"rohiniwork","email":"rohini.raghav@gmail.com"},"maintainers":[{"name":"rohiniwork","email":"rohini.raghav@gmail.com"}]},"0.0.5":{"name":"restrict","description":"Restricts applications from calling certain methods on process and all methods on child_process","version":"0.0.5","author":{"name":"Rohini Harendra","email":"rohini.raghav@gmail.com"},"repository":{"type":"git","url":"https://github.com/yahoo/restrict.git"},"bugs":{"url":"http://github.com/yahoo/restrict/issues"},"keywords":["restrict","yahoo"],"licenses":[{"type":"BSD","url":"https://github.com/yahoo/restrict/blob/master/LICENSE"}],"engines":{"node":">=0.6"},"dependencies":{},"devDependencies":{"jshint":"*","yui-lint":"*","istanbul":"*","vows":"*"},"main":"./lib/index.js","scripts":{"pretest":"jshint --config ./node_modules/yui-lint/jshint.json ./lib/","test":"istanbul cover --print both vows -- --spec ./tests/*.js"},"gitHead":"8a540e91e2e6600c6c156fec8e1c821f09b9a41e","homepage":"https://github.com/yahoo/restrict","_id":"restrict@0.0.5","_shasum":"b5537f16cac5480ea268860c42e9d1d7c3cbddc3","_from":".","_npmVersion":"2.0.0-alpha.6.0","_npmUser":{"name":"vsacheti","email":"vsacheti@yahoo.com"},"maintainers":[{"name":"rohiniwork","email":"rohini.raghav@gmail.com"},{"name":"vsacheti","email":"vsacheti@yahoo.com"}],"dist":{"shasum":"b5537f16cac5480ea268860c42e9d1d7c3cbddc3","tarball":"https://registry.npmjs.org/restrict/-/restrict-0.0.5.tgz","integrity":"sha512-xFQkhNOPEm98W1UiV9MJx8BiFPPdtxf+2OaKvUu7bdgIy+TiibVZdAHYkxsdQnRkYkYCYHNQt2V/a8IS6HTgiw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCVOv0I6gn2KBouaLOL/HwK8xz60jFFd2lLcR9unXh0cwIgAn4UeBa8u/V1gGu571raoJCaoTxE+i037GMgFFU2c7Q="}]}},"0.0.6":{"name":"restrict","description":"Restricts applications from calling certain methods on process and all methods on child_process","version":"0.0.6","author":{"name":"Rohini Harendra","email":"rohini.raghav@gmail.com"},"repository":{"type":"git","url":"https://github.com/yahoo/restrict.git"},"bugs":{"url":"http://github.com/yahoo/restrict/issues"},"keywords":["restrict","yahoo"],"licenses":[{"type":"BSD","url":"https://github.com/yahoo/restrict/blob/master/LICENSE"}],"engines":{"node":">=0.6"},"dependencies":{},"devDependencies":{"jshint":"*","yui-lint":"*","istanbul":"*","vows":"*"},"main":"./lib/index.js","scripts":{"pretest":"jshint --config ./node_modules/yui-lint/jshint.json ./lib/","test":"istanbul cover --print both vows -- --spec ./tests/*.js"},"gitHead":"b12465de03d24caddb99d6b2d6cee4d20b7dfb06","homepage":"https://github.com/yahoo/restrict","_id":"restrict@0.0.6","_shasum":"c44bbdd3ad1624edbfdec2fb87135b0290e99810","_from":".","_npmVersion":"2.0.0-alpha.6.0","_npmUser":{"name":"vsacheti","email":"vsacheti@yahoo.com"},"maintainers":[{"name":"rohiniwork","email":"rohini.raghav@gmail.com"},{"name":"vsacheti","email":"vsacheti@yahoo.com"}],"dist":{"shasum":"c44bbdd3ad1624edbfdec2fb87135b0290e99810","tarball":"https://registry.npmjs.org/restrict/-/restrict-0.0.6.tgz","integrity":"sha512-300Zp5mi6Q/PdC1TIU2z2LmpBFOjkSZeO+ov4GaUoCinQQLGgNCrbE+RU4NrCC5SBLhz+QDTcMKnBKuiXwBCRA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAXEUQoWG74MjFwtsF2cDmIN2cyBoeFbpYQf2tEK2k4vAiEA+DXv+j8z7fWhHNvukTsDuDNOZPJEyx2z5AOMnxMtkSI="}]}},"0.0.7":{"name":"restrict","description":"Restricts applications from calling certain methods on process and all methods on child_process","version":"0.0.7","author":{"name":"Rohini Harendra","email":"rohini.raghav@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/yahoo/restrict.git"},"bugs":{"url":"http://github.com/yahoo/restrict/issues"},"keywords":["restrict","yahoo"],"licenses":[{"type":"BSD","url":"https://github.com/yahoo/restrict/blob/master/LICENSE"}],"engines":{"node":">=0.6"},"dependencies":{},"devDependencies":{"jshint":"*","yui-lint":"*","istanbul":"*","vows":"*"},"main":"./lib/index.js","scripts":{"pretest":"jshint --config ./node_modules/yui-lint/jshint.json ./lib/","test":"istanbul cover --print both vows -- --spec ./tests/*.js"},"gitHead":"039e846afa121b1984da8e970c4e61edcc67ac7c","homepage":"https://github.com/yahoo/restrict#readme","_id":"restrict@0.0.7","_shasum":"ed62fe22351083dde5cc2606d6a462524f299f31","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"vsacheti","email":"vsacheti@yahoo.com"},"maintainers":[{"name":"rohiniwork","email":"rohini.raghav@gmail.com"},{"name":"vsacheti","email":"vsacheti@yahoo.com"}],"dist":{"shasum":"ed62fe22351083dde5cc2606d6a462524f299f31","tarball":"https://registry.npmjs.org/restrict/-/restrict-0.0.7.tgz","integrity":"sha512-/Ofnnc1xPujWNRwo89xEG/j3yiy3WJBZwLQUWLWCevRs0SB0DLmS/gGqpq+SmqeWWHk1lBy9jSS9Cb60fOgutg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8WOC1nzXCS3GPxtuMP+ayEYhZOUR3fWwd+O/beavOUQIhAOd4wPawvz2o7NwEqSgov7isQUHCnLk+9f7Z/qKnQpJ1"}]}},"0.0.8":{"name":"restrict","description":"Restricts applications from calling certain methods on process and all methods on child_process","version":"0.0.8","author":{"name":"Rohini Harendra","email":"rohini.raghav@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/yahoo/restrict.git"},"bugs":{"url":"http://github.com/yahoo/restrict/issues"},"keywords":["restrict","yahoo"],"licenses":[{"type":"BSD","url":"https://github.com/yahoo/restrict/blob/master/LICENSE"}],"engines":{"node":">=0.6"},"dependencies":{},"devDependencies":{"jshint":"*","yui-lint":"*","istanbul":"*","vows":"*"},"main":"./lib/index.js","scripts":{"pretest":"jshint --config ./node_modules/yui-lint/jshint.json ./lib/","test":"istanbul cover --print both vows -- --spec ./tests/*.js"},"gitHead":"9e478edb6cf7faf2b713ca899e7fa7ee86208c61","homepage":"https://github.com/yahoo/restrict#readme","_id":"restrict@0.0.8","_shasum":"39df4fe6654c0a45e43db588ab73ab7aa30dc49d","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.0.0","_npmUser":{"name":"vsacheti","email":"vsacheti@yahoo.com"},"maintainers":[{"name":"drewfolta","email":"drew@folta.net"},{"name":"rohiniwork","email":"rohini.raghav@gmail.com"},{"name":"sylviom","email":"sylviom@yahoo.com"},{"name":"vsacheti","email":"vsacheti@yahoo.com"}],"dist":{"shasum":"39df4fe6654c0a45e43db588ab73ab7aa30dc49d","tarball":"https://registry.npmjs.org/restrict/-/restrict-0.0.8.tgz","integrity":"sha512-l9Euds8YxqYoLCE4Ga1ua70kjpNcoLcAqFivcUNr9Zrppwb8GF2l8n9l43ILv1xGwt45Fm4Gu6gkz3xmS4cNEw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCRbBDF/Ew5+85XIgT4OcxApDg+vlgt2nyqmS9aPjUh/gIhAKTLmh3YB27KuTryqJkGBletLbGvOE8NXLccozV5CPQP"}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/restrict-0.0.8.tgz_1474927903708_0.17728732153773308"}},"0.0.9":{"name":"restrict","description":"Restricts applications from calling certain methods on process and all methods on child_process","version":"0.0.9","author":{"name":"Rohini Harendra","email":"rohini.raghav@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/yahoo/restrict.git"},"bugs":{"url":"http://github.com/yahoo/restrict/issues"},"keywords":["restrict","yahoo"],"licenses":[{"type":"BSD","url":"https://github.com/yahoo/restrict/blob/master/LICENSE"}],"engines":{"node":">=0.6"},"dependencies":{},"devDependencies":{"jshint":"*","yui-lint":"*","istanbul":"*","vows":"*"},"main":"./lib/index.js","scripts":{"pretest":"jshint --config ./node_modules/yui-lint/jshint.json ./lib/","test":"istanbul cover --print both vows -- --spec ./tests/*.js"},"gitHead":"ecbf014a4b9b45d87463861517868d7e7f5fede0","homepage":"https://github.com/yahoo/restrict#readme","_id":"restrict@0.0.9","_shasum":"aa4f55e42759c537dfa68dc5cc152ae05822483e","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"vsacheti","email":"vsacheti@yahoo.com"},"dist":{"shasum":"aa4f55e42759c537dfa68dc5cc152ae05822483e","tarball":"https://registry.npmjs.org/restrict/-/restrict-0.0.9.tgz","integrity":"sha512-KHGYdOyaBGUnWLm3XDaFd7Z1jT5D6vVU9zGqSo1sIGEKqvgWMrPuHbI1wPm80EZcH7X7VjITtubZiqjEQeurBg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF3byBKv5gjt5PbqF66z4utGW8efPGAf2yxQo2JO6dBBAiA5xjeqaSby0Gbp5iJct08UySl2nWnlRd/Jhn8Q9fo/CA=="}]},"maintainers":[{"name":"drewfolta","email":"drew@folta.net"},{"name":"rohiniwork","email":"rohini.raghav@gmail.com"},{"name":"sylviom","email":"sylviom@yahoo.com"},{"name":"vsacheti","email":"vsacheti@yahoo.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/restrict-0.0.9.tgz_1485458617946_0.10869966493919492"}}},"readme":"# restrict\n\nNodejs module that blocks applications from using procss.binding('process_wrap'), process.kill and child_process methods.\nThis protects applications from invoking these methods unintentionally, that could harm the functioning of the framework or application being developed.\n\nThis package is tested only with Node versions 8 and 10.\n\n# install\n\nWith [npm](http://npmjs.org) do:\n\n```\nnpm install restrict\n```\n\n# usage\n```js\n\nvar restrict = require('restrict');\n// ls is whitelisted\nrestrict({\n    'whitelist': ['ls'],\n    'whitelistPath': ['/bin']\n});\n\n//set whitelist can be invoked, if the whitelist is dynamic\nrestrict.setWhitelist(['grep'], ['/bin', '/usr/bin']);\n\nvar child_process = require('child_process');\ntry {\n    // ls is whitelisted. So you can see the output of ls\n    child_process.exec('/bin/ls', function (err, stdout, stderr) {\n        console.log(stdout);\n    });\n    // grep is not whitelisted. Exception thrown\n    child_process.spawn('grep', ['ssh']);\n} catch (e) {\n    //this will throw an error\n    //[Error: Function call spawn() is prohibited in this environment.]\n    console.log(e);\n}\ntry {\n    process.kill(30);\n} catch (e) {\n    //this will throw an error\n    //[Error: Function call process.kill() is prohibited in this environment.]\n    console.log(e);\n}\n```\n# Build Status\n\n[![Build Status](https://secure.travis-ci.org/yahoo/node-restrict.png?branch=master)](http://travis-ci.org/yahoo/node-restrict)\n\n# Node Badge\n\n[![NPM](https://nodei.co/npm/restrict.png)](https://nodei.co/npm/restrict/)\n","maintainers":[{"name":"drewfolta","email":"drew@folta.net"},{"name":"rohiniwork","email":"rohini.raghav@gmail.com"},{"name":"sylviom","email":"sylviom@yahoo.com"},{"name":"vsacheti","email":"vsacheti@yahoo.com"}],"time":{"modified":"2022-06-26T12:12:36.763Z","created":"2013-10-22T18:17:56.541Z","0.0.1":"2013-10-22T18:17:57.903Z","0.0.2":"2013-12-10T00:07:56.596Z","0.0.3":"2013-12-18T02:22:39.166Z","0.0.4":"2014-01-02T23:03:41.484Z","0.0.5":"2014-08-15T00:01:53.235Z","0.0.6":"2014-08-15T21:21:27.893Z","0.0.7":"2015-06-08T20:31:46.450Z","0.0.8":"2016-09-26T22:11:46.259Z","0.0.9":"2017-01-26T19:23:38.178Z"},"author":{"name":"Rohini Harendra","email":"rohini.raghav@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/yahoo/restrict.git"},"homepage":"https://github.com/yahoo/restrict#readme","keywords":["restrict","yahoo"],"bugs":{"url":"http://github.com/yahoo/restrict/issues"},"readmeFilename":"README.md"}