Name: js-handler/node_modules/daemon/package.json
| 1: | { |
| 2: | "name": "daemon", |
| 3: | "version": "1.1.0", |
| 4: | "description": "Add-on for creating *nix daemons", |
| 5: | "author": { |
| 6: | "name": "Roman Shtylman", |
| 7: | "email": "[email protected]" |
| 8: | }, |
| 9: | "contributors": [ |
| 10: | { |
| 11: | "name": "Pedro Teixeira", |
| 12: | "email": "[email protected]" |
| 13: | }, |
| 14: | { |
| 15: | "name": "Charlie Robbins", |
| 16: | "email": "[email protected]" |
| 17: | }, |
| 18: | { |
| 19: | "name": "James Halliday", |
| 20: | "email": "[email protected]" |
| 21: | }, |
| 22: | { |
| 23: | "name": "Zak Taylor", |
| 24: | "email": "[email protected]" |
| 25: | }, |
| 26: | { |
| 27: | "name": "Daniel Bartlett", |
| 28: | "email": "[email protected]" |
| 29: | }, |
| 30: | { |
| 31: | "name": "Charlie McConnell", |
| 32: | "email": "[email protected]" |
| 33: | }, |
| 34: | { |
| 35: | "name": "Josh Holbrook", |
| 36: | "email": "[email protected]" |
| 37: | }, |
| 38: | { |
| 39: | "name": "Arthur", |
| 40: | "email": "[email protected]", |
| 41: | "url": "Slashed" |
| 42: | } |
| 43: | ], |
| 44: | "repository": { |
| 45: | "type": "git", |
| 46: | "url": "http://github.com/indexzero/daemon.node.git" |
| 47: | }, |
| 48: | "scripts": { |
| 49: | "test": "mocha --ui qunit test/*.js" |
| 50: | }, |
| 51: | "devDependencies": { |
| 52: | "mocha": "1.8.1", |
| 53: | "after": "0.6.0" |
| 54: | }, |
| 55: | "main": "./index.js", |
| 56: | "engines": { |
| 57: | "node": ">= 0.8.0" |
| 58: | }, |
| 59: | "readme": "# daemon\n\n[](http://travis-ci.org/indexzero/daemon.node)\n\nTurn a node script into a daemon.\n\n## install via npm\n\n```\nnpm install daemon\n```\n\nRequires node >= 0.8\n\n## examples\n\n```javascript\n// this code is run twice\n// see implementation notes below\nconsole.log(process.pid);\n\n// after this point, we are a daemon\nrequire('daemon')();\n\n// different pid because we are now forked\n// original parent has exited\nconsole.log(process.pid);\n```\n\n## api\n\n### daemon()\n\nRespawn the process (self) as a daemon. The parent process will exit at the point of this call.\n\n### daemon.daemon(script, args, opt)\n\nSpawn the `script` with given `args` array as a daemonized process. Return the `child` process object.\n\nopt can optionally contain the following arguments:\n* stdout (file descriptor for stdout of the daemon)\n* stderr (file descriptor for stderr of the daemon)\n* env (environment for the daemon) (default: process.env)\n* cwd (current working directory for daemonized script) (default: process.cwd)\n\n## implementation notes\n\nDaemon actually re-spawns the current application and runs it again. The only difference between the original and the fork is that the original will not execute past the `daemon()` call whereas the fork will.\n\n## node versions prior to 0.8\n\nUsing this module on older versions of node (or older versions of this module) are not recommended due to how node works internally and the issues it can cause for daemons.\n\n## Contributors\n[Charlie Robbins](http://nodejitsu.com) \n[Pedro Teixeira](https://github.com/pgte) \n[James Halliday](https://github.com/substack) \n[Zak Taylor](https://github.com/dobl) \n[Daniel Bartlett](https://github.com/danbuk) \n[Charlie McConnell](https://github.com/AvianFlu) \n[Slashed](http://github.com/slashed) \n[Roman Shtylman](http://github.com/shtylman) \n\n", |
| 60: | "readmeFilename": "README.md", |
| 61: | "bugs": { |
| 62: | "url": "https://github.com/indexzero/daemon.node/issues" |
| 63: | }, |
| 64: | "_id": "[email protected]", |
| 65: | "_from": "[email protected]" |
| 66: | } |
