package.json 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. {
  2. "author": {
  3. "name": "Isaac Z. Schlueter",
  4. "email": "i@izs.me",
  5. "url": "http://blog.izs.me"
  6. },
  7. "name": "graceful-fs",
  8. "description": "A drop-in replacement for fs, making various improvements.",
  9. "version": "3.0.5",
  10. "repository": {
  11. "type": "git",
  12. "url": "git://github.com/isaacs/node-graceful-fs.git"
  13. },
  14. "main": "graceful-fs.js",
  15. "engines": {
  16. "node": ">=0.4.0"
  17. },
  18. "directories": {
  19. "test": "test"
  20. },
  21. "scripts": {
  22. "test": "tap test/*.js"
  23. },
  24. "keywords": [
  25. "fs",
  26. "module",
  27. "reading",
  28. "retry",
  29. "retries",
  30. "queue",
  31. "error",
  32. "errors",
  33. "handling",
  34. "EMFILE",
  35. "EAGAIN",
  36. "EINVAL",
  37. "EPERM",
  38. "EACCESS"
  39. ],
  40. "license": "BSD",
  41. "devDependencies": {
  42. "mkdirp": "^0.5.0",
  43. "rimraf": "^2.2.8",
  44. "tap": "^0.4.13"
  45. },
  46. "readme": "# graceful-fs\n\ngraceful-fs functions as a drop-in replacement for the fs module,\nmaking various improvements.\n\nThe improvements are meant to normalize behavior across different\nplatforms and environments, and to make filesystem access more\nresilient to errors.\n\n## Improvements over [fs module](http://api.nodejs.org/fs.html)\n\ngraceful-fs:\n\n* Queues up `open` and `readdir` calls, and retries them once\n something closes if there is an EMFILE error from too many file\n descriptors.\n* fixes `lchmod` for Node versions prior to 0.6.2.\n* implements `fs.lutimes` if possible. Otherwise it becomes a noop.\n* ignores `EINVAL` and `EPERM` errors in `chown`, `fchown` or\n `lchown` if the user isn't root.\n* makes `lchmod` and `lchown` become noops, if not available.\n* retries reading a file if `read` results in EAGAIN error.\n\nOn Windows, it retries renaming a file for up to one second if `EACCESS`\nor `EPERM` error occurs, likely because antivirus software has locked\nthe directory.\n\n## USAGE\n\n```javascript\n// use just like fs\nvar fs = require('graceful-fs')\n\n// now go and do stuff with it...\nfs.readFileSync('some-file-or-whatever')\n```\n",
  47. "readmeFilename": "README.md",
  48. "bugs": {
  49. "url": "https://github.com/isaacs/node-graceful-fs/issues"
  50. },
  51. "homepage": "https://github.com/isaacs/node-graceful-fs",
  52. "_id": "graceful-fs@3.0.5",
  53. "_shasum": "4a880474bdeb716fe3278cf29792dec38dfac418",
  54. "_from": "graceful-fs@~3.0.1",
  55. "_resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-3.0.5.tgz"
  56. }