UNPKG

@zkochan/pnpm

Version:

Fast, disk space efficient package manager

115 lines (114 loc) 3.72 kB
{ "_args": [ [ { "raw": "p-is-promise@^1.1.0", "scope": null, "escapedName": "p-is-promise", "name": "p-is-promise", "rawSpec": "^1.1.0", "spec": ">=1.1.0 <2.0.0", "type": "range" }, "/home/zkochan/src/pnpm/packages/pnpm/node_modules/mem" ] ], "_from": "p-is-promise@>=1.1.0 <2.0.0", "_id": "p-is-promise@1.1.0", "_inCache": true, "_location": "/p-is-promise", "_nodeVersion": "7.2.0", "_npmOperationalInternal": { "host": "packages-12-west.internal.npmjs.com", "tmp": "tmp/p-is-promise-1.1.0.tgz_1480311619830_0.49488614220172167" }, "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "_npmVersion": "3.10.9", "_phantomChildren": {}, "_requested": { "raw": "p-is-promise@^1.1.0", "scope": null, "escapedName": "p-is-promise", "name": "p-is-promise", "rawSpec": "^1.1.0", "spec": ">=1.1.0 <2.0.0", "type": "range" }, "_requiredBy": [ "/encode-registry/mem", "/into-stream", "/mem" ], "_resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-1.1.0.tgz", "_shasum": "9c9456989e9f6588017b0434d56097675c3da05e", "_shrinkwrap": null, "_spec": "p-is-promise@^1.1.0", "_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/mem", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, "bugs": { "url": "https://github.com/sindresorhus/p-is-promise/issues" }, "dependencies": {}, "description": "Check if something is a promise", "devDependencies": { "ava": "*", "bluebird": "^3.4.6", "xo": "*" }, "directories": {}, "dist": { "shasum": "9c9456989e9f6588017b0434d56097675c3da05e", "tarball": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-1.1.0.tgz" }, "engines": { "node": ">=4" }, "files": [ "index.js" ], "gitHead": "4333abad2f82fb0b33fbdd962ec25d7e3f0e0672", "homepage": "https://github.com/sindresorhus/p-is-promise#readme", "keywords": [ "promise", "is", "detect", "check", "kind", "type", "thenable", "es2015", "async", "await", "promises", "bluebird" ], "license": "MIT", "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" } ], "name": "p-is-promise", "optionalDependencies": {}, "readme": "# p-is-promise [![Build Status](https://travis-ci.org/sindresorhus/p-is-promise.svg?branch=master)](https://travis-ci.org/sindresorhus/p-is-promise)\n\n> Check if something is a promise\n\nWhy not [`is-promise`](https://github.com/then/is-promise)? That module [checks for a thenable](https://github.com/then/is-promise/issues/6), not an ES2015 promise. This one is stricter.\n\nYou most likely don't need this. Just pass your value to `Promise.resolve()` and let it handle it.\n\nCan be useful if you need to create a fast path for a synchronous operation.\n\n\n## Install\n\n```\n$ npm install --save p-is-promise\n```\n\n\n## Usage\n\n```js\nconst pIsPromise = require('p-is-promise');\nconst Bluebird = require('bluebird');\n\npIsPromise(Promise.resolve('🦄'));\n//=> true\n\npIsPromise(Bluebird.resolve('🦄'));\n//=> true\n\npIsPromise('🦄');\n//=> false\n```\n\n\n## Related\n\n- [More…](https://github.com/sindresorhus/promise-fun)\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n", "readmeFilename": "readme.md", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/p-is-promise.git" }, "scripts": { "test": "xo && ava" }, "version": "1.1.0", "xo": { "esnext": true } }