package.json 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. {
  2. "_args": [
  3. [
  4. {
  5. "raw": "exit@~0.1.1",
  6. "scope": null,
  7. "escapedName": "exit",
  8. "name": "exit",
  9. "rawSpec": "~0.1.1",
  10. "spec": ">=0.1.1 <0.2.0",
  11. "type": "range"
  12. },
  13. "/home/conte/data/reveal.js/node_modules/grunt"
  14. ]
  15. ],
  16. "_from": "exit@>=0.1.1 <0.2.0",
  17. "_id": "exit@0.1.2",
  18. "_inCache": true,
  19. "_location": "/exit",
  20. "_npmUser": {
  21. "name": "cowboy",
  22. "email": "cowboy@rj3.net"
  23. },
  24. "_npmVersion": "1.3.11",
  25. "_phantomChildren": {},
  26. "_requested": {
  27. "raw": "exit@~0.1.1",
  28. "scope": null,
  29. "escapedName": "exit",
  30. "name": "exit",
  31. "rawSpec": "~0.1.1",
  32. "spec": ">=0.1.1 <0.2.0",
  33. "type": "range"
  34. },
  35. "_requiredBy": [
  36. "/cli",
  37. "/grunt",
  38. "/grunt-legacy-util",
  39. "/jshint"
  40. ],
  41. "_resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz",
  42. "_shasum": "0632638f8d877cc82107d30a0fff1a17cba1cd0c",
  43. "_shrinkwrap": null,
  44. "_spec": "exit@~0.1.1",
  45. "_where": "/home/conte/data/reveal.js/node_modules/grunt",
  46. "author": {
  47. "name": "\"Cowboy\" Ben Alman",
  48. "url": "http://benalman.com/"
  49. },
  50. "bugs": {
  51. "url": "https://github.com/cowboy/node-exit/issues"
  52. },
  53. "dependencies": {},
  54. "description": "A replacement for process.exit that ensures stdio are fully drained before exiting.",
  55. "devDependencies": {
  56. "grunt": "~0.4.1",
  57. "grunt-contrib-jshint": "~0.6.4",
  58. "grunt-contrib-nodeunit": "~0.2.0",
  59. "grunt-contrib-watch": "~0.5.3",
  60. "which": "~1.0.5"
  61. },
  62. "directories": {},
  63. "dist": {
  64. "shasum": "0632638f8d877cc82107d30a0fff1a17cba1cd0c",
  65. "tarball": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz"
  66. },
  67. "engines": {
  68. "node": ">= 0.8.0"
  69. },
  70. "homepage": "https://github.com/cowboy/node-exit",
  71. "keywords": [
  72. "exit",
  73. "process",
  74. "stdio",
  75. "stdout",
  76. "stderr",
  77. "drain",
  78. "flush",
  79. "3584"
  80. ],
  81. "licenses": [
  82. {
  83. "type": "MIT",
  84. "url": "https://github.com/cowboy/node-exit/blob/master/LICENSE-MIT"
  85. }
  86. ],
  87. "main": "lib/exit",
  88. "maintainers": [
  89. {
  90. "name": "cowboy",
  91. "email": "cowboy@rj3.net"
  92. }
  93. ],
  94. "name": "exit",
  95. "optionalDependencies": {},
  96. "readme": "# exit [![Build Status](https://secure.travis-ci.org/cowboy/node-exit.png?branch=master)](http://travis-ci.org/cowboy/node-exit)\n\nA replacement for process.exit that ensures stdio are fully drained before exiting.\n\nTo make a long story short, if `process.exit` is called on Windows, script output is often truncated when pipe-redirecting `stdout` or `stderr`. This module attempts to work around this issue by waiting until those streams have been completely drained before actually calling `process.exit`.\n\nSee [Node.js issue #3584](https://github.com/joyent/node/issues/3584) for further reference.\n\nTested in OS X 10.8, Windows 7 on Node.js 0.8.25 and 0.10.18.\n\nBased on some code by [@vladikoff](https://github.com/vladikoff).\n\n## Getting Started\nInstall the module with: `npm install exit`\n\n```javascript\nvar exit = require('exit');\n\n// These lines should appear in the output, EVEN ON WINDOWS.\nconsole.log(\"omg\");\nconsole.error(\"yay\");\n\n// process.exit(5);\nexit(5);\n\n// These lines shouldn't appear in the output.\nconsole.log(\"wtf\");\nconsole.error(\"bro\");\n```\n\n## Don't believe me? Try it for yourself.\n\nIn Windows, clone the repo and cd to the `test\\fixtures` directory. The only difference between [log.js](test/fixtures/log.js) and [log-broken.js](test/fixtures/log-broken.js) is that the former uses `exit` while the latter calls `process.exit` directly.\n\nThis test was done using cmd.exe, but you can see the same results using `| grep \"std\"` in either PowerShell or git-bash.\n\n```\nC:\\node-exit\\test\\fixtures>node log.js 0 10 stdout stderr 2>&1 | find \"std\"\nstdout 0\nstderr 0\nstdout 1\nstderr 1\nstdout 2\nstderr 2\nstdout 3\nstderr 3\nstdout 4\nstderr 4\nstdout 5\nstderr 5\nstdout 6\nstderr 6\nstdout 7\nstderr 7\nstdout 8\nstderr 8\nstdout 9\nstderr 9\n\nC:\\node-exit\\test\\fixtures>node log-broken.js 0 10 stdout stderr 2>&1 | find \"std\"\n\nC:\\node-exit\\test\\fixtures>\n```\n\n## Contributing\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).\n\n## Release History\n2013-11-26 - v0.1.2 - Fixed a bug with hanging processes. \n2013-09-26 - v0.1.1 - Fixed some bugs. It seems to actually work now! \n2013-09-20 - v0.1.0 - Initial release.\n\n## License\nCopyright (c) 2013 \"Cowboy\" Ben Alman \nLicensed under the MIT license.\n",
  97. "readmeFilename": "README.md",
  98. "repository": {
  99. "type": "git",
  100. "url": "git://github.com/cowboy/node-exit.git"
  101. },
  102. "scripts": {
  103. "test": "grunt nodeunit"
  104. },
  105. "version": "0.1.2"
  106. }