@zkochan/pnpm
Version:
Fast, disk space efficient package manager
114 lines (113 loc) • 4.79 kB
JSON
{
"_args": [
[
{
"raw": "p-try@^2.0.0",
"scope": null,
"escapedName": "p-try",
"name": "p-try",
"rawSpec": "^2.0.0",
"spec": ">=2.0.0 <3.0.0",
"type": "range"
},
"/home/zkochan/src/pnpm/packages/pnpm/node_modules/p-limit"
]
],
"_from": "p-try@>=2.0.0 <3.0.0",
"_id": "p-try@2.0.0",
"_inCache": true,
"_location": "/p-try",
"_nodeVersion": "8.11.2",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/p-try_2.0.0_1528996259608_0.5084892289403542"
},
"_npmUser": {
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
},
"_npmVersion": "5.6.0",
"_phantomChildren": {},
"_requested": {
"raw": "p-try@^2.0.0",
"scope": null,
"escapedName": "p-try",
"name": "p-try",
"rawSpec": "^2.0.0",
"spec": ">=2.0.0 <3.0.0",
"type": "range"
},
"_requiredBy": [
"/p-limit"
],
"_resolved": "https://registry.npmjs.org/p-try/-/p-try-2.0.0.tgz",
"_shasum": "85080bb87c64688fa47996fe8f7dfbe8211760b1",
"_shrinkwrap": null,
"_spec": "p-try@^2.0.0",
"_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/p-limit",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"bugs": {
"url": "https://github.com/sindresorhus/p-try/issues"
},
"dependencies": {},
"description": "`Start a promise chain",
"devDependencies": {
"ava": "*",
"xo": "*"
},
"directories": {},
"dist": {
"integrity": "sha512-hMp0onDKIajHfIkdRk3P4CdCmErkYAxxDtP3Wx/4nZ3aGlau2VKh3mZpcuFkH27WQkL/3WBCPOktzA9ZOAnMQQ==",
"shasum": "85080bb87c64688fa47996fe8f7dfbe8211760b1",
"tarball": "https://registry.npmjs.org/p-try/-/p-try-2.0.0.tgz",
"fileCount": 4,
"unpackedSize": 2987,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbIqGkCRA9TVsSAnZWagAAMBoQAJN8/dFWjtMshgIsBTwp\nU5BksixW+WTd2gwX8gwnBfE0e3ZVDILdE60seM9FflibHNzFUD0qnfyvrvw2\nOr88f2WYA2PpnweQ5mC7ZSTl1m6FiXhgAnA4q2HX+QWhMkrYiUzodR0LjQ3P\nhIcPHQAjXvYMFDM4tD9HCR/GB5+nhR1phmKpXNLocjFG0/HOFNZf5LAX5kBj\nAYQZisPKISNoN0mtdgdZYhLssrxu9uxT5jyRRyf1awpo/FYlHrWWiyuKUeBq\nla0ke7ooJp4kXzfgU333gzO27nhRuU52G4wv5EVTt/2du03KcBLZvsuKRTHC\nPmC0frxa+nn+jl8cXQlVF8sRxhLElx9z8ou87AhFJoKAmwAF3I4he7cNo2l/\nSat5eEJwUZefFHDzQ8ki6bbzpmpEog07gnlSu3pZLKABLk4o8lCI5pZe/zyE\n0b6OiEAcYaB4nXpW7zmDhkP4qmhN9uSIxZdTt8OTnnhuJDV7JMnH70n/vfPs\n3gUObscw9NV5rbFVzmtMx/O+vDdTnAPCJ8nInCbC7GZjmheezLy545CXCWTZ\na6pJ/NXpufXsHvGoC8IvqAFvQ3cPiKThiGSjR8DvuLkPKM99uf7jMGUT2kBC\n4VUot0pEyWKcmvpfcrdmPGG0VM6Arbu9DkyelxPatk4H4uIN+fwHwwHrZopw\nm9tq\r\n=aQEU\r\n-----END PGP SIGNATURE-----\r\n"
},
"engines": {
"node": ">=6"
},
"files": [
"index.js"
],
"gitHead": "bba0e1dd227a64c91d16840e0985be9603c3ab62",
"homepage": "https://github.com/sindresorhus/p-try#readme",
"keywords": [
"promise",
"try",
"resolve",
"function",
"catch",
"async",
"await",
"promises",
"settled",
"ponyfill",
"polyfill",
"shim",
"bluebird"
],
"license": "MIT",
"maintainers": [
{
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
}
],
"name": "p-try",
"optionalDependencies": {},
"readme": "# p-try [](https://travis-ci.org/sindresorhus/p-try)\n\n> Start a promise chain\n\n[How is it useful?](http://cryto.net/~joepie91/blog/2016/05/11/what-is-promise-try-and-why-does-it-matter/)\n\n\n## Install\n\n```\n$ npm install p-try\n```\n\n\n## Usage\n\n```js\nconst pTry = require('p-try');\n\npTry(() => {\n\treturn synchronousFunctionThatMightThrow();\n}).then(value => {\n\tconsole.log(value);\n}).catch(error => {\n\tconsole.error(error);\n});\n```\n\n\n## API\n\n### pTry(fn, ...args)\n\nReturns a `Promise` resolved with the value of calling `fn(...args)`. If the function throws an error, the returned `Promise` will be rejected with that error.\n\nSupport for passing arguments on to the `fn` is provided in order to be able to avoid creating unnecessary closures. You probably don't need this optimization unless you're pushing a *lot* of functions.\n\n\n## Related\n\n- [p-finally](https://github.com/sindresorhus/p-finally) - `Promise#finally()` ponyfill - Invoked when the promise is settled regardless of outcome\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-try.git"
},
"scripts": {
"test": "xo && ava"
},
"version": "2.0.0"
}