restartable
Version:
a simple way to restart your app without actually restarting node.js
38 lines (37 loc) • 1.74 kB
JSON
{
"name": "restartable",
"version": "0.0.14",
"author": {
"name": "Matthias Behrens",
"email": "matthias.behrens@gmail.com"
},
"description": "a simple way to restart your app without actually restarting node.js",
"main": "./lib/restartable.js",
"repository": {
"type": "git",
"url": "https://github.com/soliton4/restartable"
}
, "dependencies" : {
"message-adapter" : ">= 0.0.2"
},
"keywords": [
"restart",
"server",
"restartable"
],
"license": "BSD",
"engines": {
"node": ">=0.8"
},
"readmeFilename": "README.md",
"readme": "## Description\n\nmakes it possible to restart your app without restarting the main node.js process itself. \nrestartable takes advantage of the node.js cluster module. When a node process is forked using the cluster module, all the sourcefiles are being read from disk, making a virtual restart of node.js possible. \nIt is recommended for development or maintainance work. \nIt has not been tested in combination with apps that actually use cluster. \n\n## Usage\n\n```js\nrequire(\"restartable\")(function(parRestartableObj){\n console.log(\"this code is restartable\");\n setTimeout(function(){\n parRestartableObj.restart();\n }, 2000);\n}, function(parRestartableObj){\n console.log(\"this code is not restartable\");\n setTimeout(function(){\n parRestartableObj.restart();\n }, 8000);\n});\n```\n## License\n\nBSD\n",
"bugs": {
"url": "https://github.com/soliton4/restartable/issues"
},
"_id": "restartable@0.0.11",
"dist": {
"shasum": "2cfd74ff32e96a384b523a7be7241e0357310a94"
},
"_from": "restartable@*",
"_resolved": "https://registry.npmjs.org/restartable/-/restartable-0.0.11.tgz"
}