Name: js-handler/node_modules/restify/node_modules/once/package.json
| 1: | { |
| 2: | "name": "once", |
| 3: | "version": "1.1.1", |
| 4: | "description": "Run a function exactly one time", |
| 5: | "main": "once.js", |
| 6: | "directories": { |
| 7: | "test": "test" |
| 8: | }, |
| 9: | "dependencies": {}, |
| 10: | "devDependencies": { |
| 11: | "tap": "~0.3.0" |
| 12: | }, |
| 13: | "scripts": { |
| 14: | "test": "tap test/*.js" |
| 15: | }, |
| 16: | "repository": { |
| 17: | "type": "git", |
| 18: | "url": "git://github.com/isaacs/once" |
| 19: | }, |
| 20: | "keywords": [ |
| 21: | "once", |
| 22: | "function", |
| 23: | "one", |
| 24: | "single" |
| 25: | ], |
| 26: | "author": { |
| 27: | "name": "Isaac Z. Schlueter", |
| 28: | "email": "[email protected]", |
| 29: | "url": "http://blog.izs.me/" |
| 30: | }, |
| 31: | "license": "BSD", |
| 32: | "readme": "# once\n\nOnly call a function once.\n\n## usage\n\n```javascript\nvar once = require('once')\n\nfunction load (file, cb) {\n cb = once(cb)\n loader.load('file')\n loader.once('load', cb)\n loader.once('error', cb)\n}\n```\n\nOr add to the Function.prototype in a responsible way:\n\n```javascript\n// only has to be done once\nrequire('once').proto()\n\nfunction load (file, cb) {\n cb = cb.once()\n loader.load('file')\n loader.once('load', cb)\n loader.once('error', cb)\n}\n```\n\nIronically, the prototype feature makes this module twice as\ncomplicated as necessary.\n", |
| 33: | "readmeFilename": "README.md", |
| 34: | "bugs": { |
| 35: | "url": "https://github.com/isaacs/once/issues" |
| 36: | }, |
| 37: | "_id": "[email protected]", |
| 38: | "dist": { |
| 39: | "shasum": "b11071f62c911a3ce8d3f63cb3f1088dbc9e51bb" |
| 40: | }, |
| 41: | "_from": "[email protected]", |
| 42: | "_resolved": "https://registry.npmjs.org/once/-/once-1.1.1.tgz" |
| 43: | } |
