package.json 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. {
  2. "_args": [
  3. [
  4. {
  5. "raw": "delegates@^1.0.0",
  6. "scope": null,
  7. "escapedName": "delegates",
  8. "name": "delegates",
  9. "rawSpec": "^1.0.0",
  10. "spec": ">=1.0.0 <2.0.0",
  11. "type": "range"
  12. },
  13. "/mnt/Data/bach/Documents/ola/OLA#4/OLA#4DOC/sys/node_modules/are-we-there-yet"
  14. ]
  15. ],
  16. "_from": "delegates@>=1.0.0 <2.0.0",
  17. "_id": "delegates@1.0.0",
  18. "_inCache": true,
  19. "_location": "/delegates",
  20. "_nodeVersion": "4.2.1",
  21. "_npmUser": {
  22. "name": "tjholowaychuk",
  23. "email": "tj@vision-media.ca"
  24. },
  25. "_npmVersion": "3.3.12",
  26. "_phantomChildren": {},
  27. "_requested": {
  28. "raw": "delegates@^1.0.0",
  29. "scope": null,
  30. "escapedName": "delegates",
  31. "name": "delegates",
  32. "rawSpec": "^1.0.0",
  33. "spec": ">=1.0.0 <2.0.0",
  34. "type": "range"
  35. },
  36. "_requiredBy": [
  37. "/are-we-there-yet"
  38. ],
  39. "_resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",
  40. "_shasum": "84c6e159b81904fdca59a0ef44cd870d31250f9a",
  41. "_shrinkwrap": null,
  42. "_spec": "delegates@^1.0.0",
  43. "_where": "/mnt/Data/bach/Documents/ola/OLA#4/OLA#4DOC/sys/node_modules/are-we-there-yet",
  44. "bugs": {
  45. "url": "https://github.com/visionmedia/node-delegates/issues"
  46. },
  47. "dependencies": {},
  48. "description": "delegate methods and accessors to another property",
  49. "devDependencies": {
  50. "mocha": "*",
  51. "should": "*"
  52. },
  53. "directories": {},
  54. "dist": {
  55. "shasum": "84c6e159b81904fdca59a0ef44cd870d31250f9a",
  56. "tarball": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz"
  57. },
  58. "gitHead": "c4dc07ef1ed51c2b2a63f3585e5ef949ee577a49",
  59. "homepage": "https://github.com/visionmedia/node-delegates#readme",
  60. "keywords": [
  61. "delegate",
  62. "delegation"
  63. ],
  64. "license": "MIT",
  65. "maintainers": [
  66. {
  67. "name": "tjholowaychuk",
  68. "email": "tj@vision-media.ca"
  69. },
  70. {
  71. "name": "dominicbarnes",
  72. "email": "dominic@dbarnes.info"
  73. }
  74. ],
  75. "name": "delegates",
  76. "optionalDependencies": {},
  77. "readme": "\n# delegates\n\n Node method and accessor delegation utilty.\n\n## Installation\n\n```\n$ npm install delegates\n```\n\n## Example\n\n```js\nvar delegate = require('delegates');\n\n...\n\ndelegate(proto, 'request')\n .method('acceptsLanguages')\n .method('acceptsEncodings')\n .method('acceptsCharsets')\n .method('accepts')\n .method('is')\n .access('querystring')\n .access('idempotent')\n .access('socket')\n .access('length')\n .access('query')\n .access('search')\n .access('status')\n .access('method')\n .access('path')\n .access('body')\n .access('host')\n .access('url')\n .getter('subdomains')\n .getter('protocol')\n .getter('header')\n .getter('stale')\n .getter('fresh')\n .getter('secure')\n .getter('ips')\n .getter('ip')\n```\n\n# API\n\n## Delegate(proto, prop)\n\nCreates a delegator instance used to configure using the `prop` on the given\n`proto` object. (which is usually a prototype)\n\n## Delegate#method(name)\n\nAllows the given method `name` to be accessed on the host.\n\n## Delegate#getter(name)\n\nCreates a \"getter\" for the property with the given `name` on the delegated\nobject.\n\n## Delegate#setter(name)\n\nCreates a \"setter\" for the property with the given `name` on the delegated\nobject.\n\n## Delegate#access(name)\n\nCreates an \"accessor\" (ie: both getter *and* setter) for the property with the\ngiven `name` on the delegated object.\n\n## Delegate#fluent(name)\n\nA unique type of \"accessor\" that works for a \"fluent\" API. When called as a\ngetter, the method returns the expected value. However, if the method is called\nwith a value, it will return itself so it can be chained. For example:\n\n```js\ndelegate(proto, 'request')\n .fluent('query')\n\n// getter\nvar q = request.query();\n\n// setter (chainable)\nrequest\n .query({ a: 1 })\n .query({ b: 2 });\n```\n\n# License\n\n MIT\n",
  78. "readmeFilename": "Readme.md",
  79. "repository": {
  80. "type": "git",
  81. "url": "git+https://github.com/visionmedia/node-delegates.git"
  82. },
  83. "scripts": {},
  84. "version": "1.0.0"
  85. }