@zkochan/pnpm
Version:
Fast, disk space efficient package manager
94 lines (93 loc) • 3.27 kB
JSON
{
"_args": [
[
{
"raw": "call-me-maybe@^1.0.1",
"scope": null,
"escapedName": "call-me-maybe",
"name": "call-me-maybe",
"rawSpec": "^1.0.1",
"spec": ">=1.0.1 <2.0.0",
"type": "range"
},
"/home/zkochan/src/pnpm/packages/pnpm/node_modules/@mrmlnc/readdir-enhanced"
]
],
"_from": "call-me-maybe@>=1.0.1 <2.0.0",
"_id": "call-me-maybe@1.0.1",
"_inCache": true,
"_location": "/call-me-maybe",
"_nodeVersion": "0.12.7",
"_npmUser": {
"name": "limulus",
"email": "eric@limulus.net"
},
"_npmVersion": "2.14.2",
"_phantomChildren": {},
"_requested": {
"raw": "call-me-maybe@^1.0.1",
"scope": null,
"escapedName": "call-me-maybe",
"name": "call-me-maybe",
"rawSpec": "^1.0.1",
"spec": ">=1.0.1 <2.0.0",
"type": "range"
},
"_requiredBy": [
"/@mrmlnc/readdir-enhanced"
],
"_resolved": "https://registry.npmjs.org/call-me-maybe/-/call-me-maybe-1.0.1.tgz",
"_shasum": "26d208ea89e37b5cbde60250a15f031c16a4d66b",
"_shrinkwrap": null,
"_spec": "call-me-maybe@^1.0.1",
"_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/@mrmlnc/readdir-enhanced",
"author": {
"name": "Eric McCarthy",
"email": "eric@limulus.net",
"url": "http://www.limulus.net/"
},
"bugs": {
"url": "https://github.com/limulus/call-me-maybe/issues"
},
"dependencies": {},
"description": "Let your JS API users either give you a callback or receive a promise",
"devDependencies": {
"mocha": "^2.3.2",
"promise": "^7.0.4",
"zuul": "^3.4.0"
},
"directories": {},
"dist": {
"shasum": "26d208ea89e37b5cbde60250a15f031c16a4d66b",
"tarball": "https://registry.npmjs.org/call-me-maybe/-/call-me-maybe-1.0.1.tgz"
},
"gitHead": "af8d7167fa3c8aa21037aba2d245feb487ed2945",
"homepage": "https://github.com/limulus/call-me-maybe#readme",
"keywords": [
"promise",
"callback",
"denodeify",
"promisify",
"carlyraejepsen"
],
"license": "MIT",
"main": "index.js",
"maintainers": [
{
"name": "limulus",
"email": "eric@limulus.net"
}
],
"name": "call-me-maybe",
"optionalDependencies": {},
"readme": "# call-me-maybe [](https://travis-ci.org/limulus/call-me-maybe)\n\nLet your JS API users either give you a callback or receive a promise.\n\n## Usage\n\n```javascript\nvar maybe = require(\"call-me-maybe\")\n\nmodule.exports = function asyncFunc (cb) {\n return maybe(cb, new Promise(function(resolve, reject) {\n // ...\n }))\n}\n```\n\n## API\n\n### maybe(cb, promise)\n\nIf the callback `cb` is truthy, returns `undefined` and will call `cb` when `promise` is settled. The parameters passed to `cb` are standard error-first:\n\n - If `promise` is fulfilled, then it is called with the result of the promise: `cb(null, result)`\n - If `promise` is rejected, then it is called with the rejection error: `cb(err)`\n\nIf `cb` is falsey, then `promise` is retuned.\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/limulus/call-me-maybe.git"
},
"scripts": {
"test": "mocha"
},
"version": "1.0.1"
}