%PDF- %PDF-
Direktori : /home/waritko/.npm/registry.npmjs.org/wrappy/ |
Current File : //home/waritko/.npm/registry.npmjs.org/wrappy/.cache.json |
{"_id":"wrappy","_rev":"4-76cc20c0663a83245743762dbe477eb0","name":"wrappy","description":"Callback wrapping utility","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"wrappy","version":"1.0.0","description":"Callback wrapping utility","main":"wrappy.js","directories":{"test":"test"},"dependencies":{},"devDependencies":{"tap":"^0.4.12"},"scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"https://github.com/npm/wrappy"},"author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"http://blog.izs.me/"},"license":"ISC","bugs":{"url":"https://github.com/npm/wrappy/issues"},"homepage":"https://github.com/npm/wrappy","gitHead":"2a0cf2a39be2ebb4a53f2f87db739d98f2a5ebc5","_id":"wrappy@1.0.0","_shasum":"8aae4fc6b4cd6be32a4553985bcf32b3ee131e4e","_from":".","_npmVersion":"2.0.0","_nodeVersion":"0.10.31","_npmUser":{"name":"isaacs","email":"i@izs.me"},"maintainers":[{"name":"isaacs","email":"i@izs.me"}],"dist":{"shasum":"8aae4fc6b4cd6be32a4553985bcf32b3ee131e4e","tarball":"http://registry.npmjs.org/wrappy/-/wrappy-1.0.0.tgz"}},"1.0.1":{"name":"wrappy","version":"1.0.1","description":"Callback wrapping utility","main":"wrappy.js","directories":{"test":"test"},"dependencies":{},"devDependencies":{"tap":"^0.4.12"},"scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"https://github.com/npm/wrappy"},"author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"http://blog.izs.me/"},"license":"ISC","bugs":{"url":"https://github.com/npm/wrappy/issues"},"homepage":"https://github.com/npm/wrappy","gitHead":"006a8cbac6b99988315834c207896eed71fd069a","_id":"wrappy@1.0.1","_shasum":"1e65969965ccbc2db4548c6b84a6f2c5aedd4739","_from":".","_npmVersion":"2.0.0","_nodeVersion":"0.10.31","_npmUser":{"name":"isaacs","email":"i@izs.me"},"maintainers":[{"name":"isaacs","email":"i@izs.me"}],"dist":{"shasum":"1e65969965ccbc2db4548c6b84a6f2c5aedd4739","tarball":"http://registry.npmjs.org/wrappy/-/wrappy-1.0.1.tgz"}}},"readme":"# wrappy\n\nCallback wrapping utility\n\n## USAGE\n\n```javascript\nvar wrappy = require(\"wrappy\")\n\n// var wrapper = wrappy(wrapperFunction)\n\n// make sure a cb is called only once\n// See also: http://npm.im/once for this specific use case\nvar once = wrappy(function (cb) {\n var called = false\n return function () {\n if (called) return\n called = true\n return cb.apply(this, arguments)\n }\n})\n\nfunction printBoo () {\n console.log('boo')\n}\n// has some rando property\nprintBoo.iAmBooPrinter = true\n\nvar onlyPrintOnce = once(printBoo)\n\nonlyPrintOnce() // prints 'boo'\nonlyPrintOnce() // does nothing\n\n// random property is retained!\nassert.equal(onlyPrintOnce.iAmBooPrinter, true)\n```\n","maintainers":[{"name":"isaacs","email":"i@izs.me"}],"time":{"modified":"2014-09-18T23:13:15.838Z","created":"2014-09-18T22:59:23.410Z","1.0.0":"2014-09-18T22:59:23.410Z","1.0.1":"2014-09-18T23:13:15.838Z"},"homepage":"https://github.com/npm/wrappy","repository":{"type":"git","url":"https://github.com/npm/wrappy"},"author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"http://blog.izs.me/"},"bugs":{"url":"https://github.com/npm/wrappy/issues"},"license":"ISC","readmeFilename":"README.md","_attachments":{},"_etag":"\"6SHFG0HA4JGG49JKSW6BP3DUW\""}