GT2/GT2-iOS/node_modules/delegates/package.json

86 lines
3.9 KiB
JSON

{
"_args": [
[
{
"raw": "delegates@^1.0.0",
"scope": null,
"escapedName": "delegates",
"name": "delegates",
"rawSpec": "^1.0.0",
"spec": ">=1.0.0 <2.0.0",
"type": "range"
},
"/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/are-we-there-yet"
]
],
"_from": "delegates@>=1.0.0 <2.0.0",
"_id": "delegates@1.0.0",
"_inCache": true,
"_location": "/delegates",
"_nodeVersion": "4.2.1",
"_npmUser": {
"name": "tjholowaychuk",
"email": "tj@vision-media.ca"
},
"_npmVersion": "3.3.12",
"_phantomChildren": {},
"_requested": {
"raw": "delegates@^1.0.0",
"scope": null,
"escapedName": "delegates",
"name": "delegates",
"rawSpec": "^1.0.0",
"spec": ">=1.0.0 <2.0.0",
"type": "range"
},
"_requiredBy": [
"/are-we-there-yet"
],
"_resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",
"_shasum": "84c6e159b81904fdca59a0ef44cd870d31250f9a",
"_shrinkwrap": null,
"_spec": "delegates@^1.0.0",
"_where": "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/are-we-there-yet",
"bugs": {
"url": "https://github.com/visionmedia/node-delegates/issues"
},
"dependencies": {},
"description": "delegate methods and accessors to another property",
"devDependencies": {
"mocha": "*",
"should": "*"
},
"directories": {},
"dist": {
"shasum": "84c6e159b81904fdca59a0ef44cd870d31250f9a",
"tarball": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz"
},
"gitHead": "c4dc07ef1ed51c2b2a63f3585e5ef949ee577a49",
"homepage": "https://github.com/visionmedia/node-delegates#readme",
"keywords": [
"delegate",
"delegation"
],
"license": "MIT",
"maintainers": [
{
"name": "tjholowaychuk",
"email": "tj@vision-media.ca"
},
{
"name": "dominicbarnes",
"email": "dominic@dbarnes.info"
}
],
"name": "delegates",
"optionalDependencies": {},
"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",
"readmeFilename": "Readme.md",
"repository": {
"type": "git",
"url": "git+https://github.com/visionmedia/node-delegates.git"
},
"scripts": {},
"version": "1.0.0"
}