2015-11-03 09:07:12 +08:00
{
2016-02-25 01:50:07 +08:00
"_args" : [
[
2016-07-23 03:24:27 +08:00
{
"raw" : "wrappy@1" ,
"scope" : null ,
"escapedName" : "wrappy" ,
"name" : "wrappy" ,
"rawSpec" : "1" ,
"spec" : ">=1.0.0 <2.0.0" ,
"type" : "range"
} ,
"/Users/steveng/repo/cordova/cordova-android/node_modules/inflight"
2016-02-25 01:50:07 +08:00
]
] ,
"_from" : "wrappy@>=1.0.0 <2.0.0" ,
2016-05-26 07:31:28 +08:00
"_id" : "wrappy@1.0.2" ,
2016-02-25 01:50:07 +08:00
"_inCache" : true ,
"_location" : "/wrappy" ,
2016-05-26 07:31:28 +08:00
"_nodeVersion" : "5.10.1" ,
"_npmOperationalInternal" : {
"host" : "packages-16-east.internal.npmjs.com" ,
"tmp" : "tmp/wrappy-1.0.2.tgz_1463527848281_0.037129373755306005"
} ,
2016-02-25 01:50:07 +08:00
"_npmUser" : {
2016-07-23 03:24:27 +08:00
"name" : "zkat" ,
"email" : "kat@sykosomatic.org"
2015-11-03 09:07:12 +08:00
} ,
2016-05-26 07:31:28 +08:00
"_npmVersion" : "3.9.1" ,
2016-02-25 01:50:07 +08:00
"_phantomChildren" : { } ,
"_requested" : {
"raw" : "wrappy@1" ,
"scope" : null ,
2016-07-23 03:24:27 +08:00
"escapedName" : "wrappy" ,
"name" : "wrappy" ,
"rawSpec" : "1" ,
2016-02-25 01:50:07 +08:00
"spec" : ">=1.0.0 <2.0.0" ,
"type" : "range"
2015-11-03 09:07:12 +08:00
} ,
2016-02-25 01:50:07 +08:00
"_requiredBy" : [
"/inflight" ,
"/once"
] ,
2016-07-23 03:24:27 +08:00
"_resolved" : "http://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz" ,
2016-05-26 07:31:28 +08:00
"_shasum" : "b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" ,
2016-02-25 01:50:07 +08:00
"_shrinkwrap" : null ,
"_spec" : "wrappy@1" ,
2016-07-23 03:24:27 +08:00
"_where" : "/Users/steveng/repo/cordova/cordova-android/node_modules/inflight" ,
2015-11-03 09:07:12 +08:00
"author" : {
2016-02-25 01:50:07 +08:00
"name" : "Isaac Z. Schlueter" ,
2016-07-23 03:24:27 +08:00
"email" : "i@izs.me" ,
2015-11-03 09:07:12 +08:00
"url" : "http://blog.izs.me/"
} ,
"bugs" : {
"url" : "https://github.com/npm/wrappy/issues"
} ,
2016-02-25 01:50:07 +08:00
"dependencies" : { } ,
"description" : "Callback wrapping utility" ,
"devDependencies" : {
2016-05-26 07:31:28 +08:00
"tap" : "^2.3.1"
2016-02-25 01:50:07 +08:00
} ,
"directories" : {
"test" : "test"
} ,
"dist" : {
2016-05-26 07:31:28 +08:00
"shasum" : "b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" ,
"tarball" : "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz"
2016-01-21 07:49:00 +08:00
} ,
2016-05-26 07:31:28 +08:00
"files" : [
"wrappy.js"
] ,
"gitHead" : "71d91b6dc5bdeac37e218c2cf03f9ab55b60d214" ,
2016-02-25 01:50:07 +08:00
"homepage" : "https://github.com/npm/wrappy" ,
"license" : "ISC" ,
"main" : "wrappy.js" ,
2016-01-21 07:49:00 +08:00
"maintainers" : [
{
2016-07-23 03:24:27 +08:00
"name" : "isaacs" ,
"email" : "i@izs.me"
2016-05-26 07:31:28 +08:00
} ,
{
2016-07-23 03:24:27 +08:00
"name" : "zkat" ,
"email" : "kat@sykosomatic.org"
2016-01-21 07:49:00 +08:00
}
] ,
2016-02-25 01:50:07 +08:00
"name" : "wrappy" ,
"optionalDependencies" : { } ,
2017-09-06 02:04:12 +08:00
"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" ,
"readmeFilename" : "README.md" ,
2016-02-25 01:50:07 +08:00
"repository" : {
"type" : "git" ,
"url" : "git+https://github.com/npm/wrappy.git"
2016-01-21 07:49:00 +08:00
} ,
2016-02-25 01:50:07 +08:00
"scripts" : {
2016-05-26 07:31:28 +08:00
"test" : "tap --coverage test/*.js"
2016-02-25 01:50:07 +08:00
} ,
2016-05-26 07:31:28 +08:00
"version" : "1.0.2"
2015-11-03 09:07:12 +08:00
}