{"name":"p-pipe","version":"3.0.0","description":"Compose promise-returning & async functions into a reusable pipeline","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-pipe.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["promise","pipe","pipeline","compose","composition","combine","flow","serial","functions","reusable","async","await","promises","bluebird"],"devDependencies":{"ava":"^1.4.1","sinon":"^7.3.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"99b496e66c251c5cd60a1a6352a3437acc4a987e","bugs":{"url":"https://github.com/sindresorhus/p-pipe/issues"},"homepage":"https://github.com/sindresorhus/p-pipe#readme","_id":"p-pipe@3.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-gwwdRFmaxsT3IU+Tl3vYKVRdjfhg8Bbdjw7B+E0y6F7Yz6l+eaQLn0BRmGMXIhcPDONPtOkMoNwx1etZh4zPJA==","shasum":"ab1fb87c0b8dd79b3bb03a8a23680fc9d054e132","tarball":"http://registry-npm.ywwl.com/p-pipe/download/p-pipe-3.0.0.tgz","fileCount":5,"unpackedSize":8085,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcqIyLCRA9TVsSAnZWagAA5EEQAJ+bTjeE6/S8PQWSf7PP\ndOmIPRqI+psPAv1YmK+/gOtyQCZ0BB3I1960i7t57DVN/s1cdcCkmPrI/iCo\n7Mv/1H7yY9/tU53gQs2jFQgwjO5LZ0acOT42+qOw8zN+75O92C0vkjMwCoQ6\nkuqC7Yzl/tHsmODL89dITaevaudM+aXZVX8vETcXrcJCnFx905tE6ZDiCvjl\nz7VM6IJReX7r/bVn+i2ckbLvZttJscJ424rtLESDnp0+jO+88eln6NIXos0s\nc9vliLHNSEbevHbVnjhfgVTO1I3LMY0uX8KUSI0sP5vAhhfHdfvgJvNgR8Wz\nwgcTcMSFcfCWK77uyzU18vF5PSVouuE+5V2vvynm0TTEDuc3JM2zkSWtihi9\nebXndATTxLi1xu6ZKGuuc7ZCe4KTFLO9/XWFn1u9ABZqophyNtSxPycmsdhu\niYtsA5XmfqXu7qHS+Azlkh8DapgxnIQbFNzzx3Be6Ej1xU0dG8tp4Z8yNy6U\nrR9HohogOPO8x/i3HcEkq28NpnaACxSRYiBR+gpJRY/3nG4VZZGu1ZRCY5rn\n5Jm3R3m0Dm2WmBYzFACwVMrNfuMut2aR3VINOsdNtj74bdOXRyolxW7+jie+\ntFeMqANdVVFAoO6xtu5J08eXXP8GVthxBwzLt9DdLsSwYQ298iTd0glveA2E\nNzdt\r\n=5Np1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAhtkm/4bUDnIl64wYRNZEzaY75KNQNAtyUldTTcXAolAiAkLawOlnhU+U9GqmoKRZ0E52/RdsEGzxUllrSOSuWAeA=="}],"size":2329,"noattachment":false,"key":"/p-pipe/-/p-pipe-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-pipe_3.0.0_1554549898380_0.4227274707151625"},"_hasShrinkwrap":false,"readme":"# p-pipe\n\n> Compose promise-returning & async functions into a reusable pipeline\n\n## Install\n\n```\n$ npm install p-pipe\n```\n\n## Usage\n\n```js\nimport pPipe from 'p-pipe';\n\nconst addUnicorn = async string => `${string} Unicorn`;\nconst addRainbow = async string => `${string} Rainbow`;\n\nconst pipeline = pPipe(addUnicorn, addRainbow);\n\nconsole.log(await pipeline('❤️'));\n//=> '❤️ Unicorn Rainbow'\n```\n\n## API\n\n### pPipe(input…)\n\nThe `input` functions are applied from left to right.\n\n#### input\n\nType: `Function`\n\nExpected to return a `Promise` or any value.\n\n## Related\n\n- [p-each-series](https://github.com/sindresorhus/p-each-series) - Iterate over promises serially\n- [p-series](https://github.com/sindresorhus/p-series) - Run promise-returning & async functions in series\n- [p-waterfall](https://github.com/sindresorhus/p-waterfall) - Run promise-returning & async functions in series, each passing its result to the next\n- [More…](https://github.com/sindresorhus/promise-fun)\n\n---\n\n<div align=\"center\">\n\t<b>\n\t\t<a href=\"https://tidelift.com/subscription/pkg/npm-p-pipe?utm_source=npm-p-pipe&utm_medium=referral&utm_campaign=readme\">Get professional support for this package with a Tidelift subscription</a>\n\t</b>\n\t<br>\n\t<sub>\n\t\tTidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.\n\t</sub>\n</div>\n","publish_time":1554549898500,"_cnpm_publish_time":1554549898500,"dist-tags":{"latest":"4.0.0"}}