{"name":"p-pipe","version":"2.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-check"},"keywords":["promise","pipe","pipeline","compose","composition","combine","flow","serial","functions","reusable","async","await","promises","bluebird"],"devDependencies":{"ava":"^1.2.0","sinon":"^7.2.3","tsd-check":"^0.3.0","xo":"^0.24.0"},"gitHead":"4ca977566916b2da54a89723274449b1c70b0051","bugs":{"url":"https://github.com/sindresorhus/p-pipe/issues"},"homepage":"https://github.com/sindresorhus/p-pipe#readme","_id":"p-pipe@2.0.0","_npmVersion":"6.5.0","_nodeVersion":"10.15.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-LHMc3JaICAsrQnLb6Fn98z0EeHbfspGRdvdp0N1Lj5GmmpM8aX6K0osemf3yLWm+1kmzOEb5L+kf+uLtnXQsUA==","shasum":"0ba37bfd83ef863f8b54e11b9b942526a0d6c2ed","tarball":"http://registry-npm.ywwl.com/p-pipe/download/p-pipe-2.0.0.tgz","fileCount":5,"unpackedSize":6706,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcWBYDCRA9TVsSAnZWagAAcJsQAKEQFJv10G1lrk0YbVbW\nqHMGa3BuQLOjUndYDM24EdOh+MnmKSEZHOj210Ban3DOOoECnzWP2rxEgvuw\nf2Nv9iXMpde0cGCBjKqQfM76ZPqhXol8+eNoQLVRzi10zinZ6i7XVh/XQWgz\nWU2pPsi5KH3y7S1OG+GGbu0Up/F522lSwSYhh5eZldX0/A6hYns03PSxYHMI\nR0luUuzZ8Wa2ka+iKsODze/REsOySsvLSZrqC2+lCw6uEfgT+d0JQrMNniSL\nhoJ29sGUW+r6xouXQY9Rg5LXV5KyiP9I9pEHHeNg+MMPtmbzz4mc496EWuYE\nSMMmEuCEbSWOgk9EVih0WY78EdFKHZRmhbM99CxQDIIIsO15yrpklzsH1adp\nXDl1RiQs0xzgFftkAgUAjZVSoCxuOWIzDwLYNroO/Q4qC+k4Z8TJSSGDGi4P\nwXvEhA5kurKYpT2SpD/sj5GLPvagiNG3yewytvrcb9kIiHUMkqAalG1cIrJr\nq63ZSkP6Yzhin2+oQ+STqGCsacWPs2TMKMFQaghRgYjz/qwFdoeOstMHtJBf\nm8fSDY2ar2t+SjU6zuUKv6qetEp0lwFIaMUZkCf0QKW9V4hQjGg+rizvhyls\nm2FMrsNb/vUCBThOqqeoBCe6ZeY99NhlOvR1bBsUJoGppcFvU5tPBkbZSUbw\n7CES\r\n=YZfb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCReBfxaGt6Rc60eSjU+tgybziFlv3ncI2xYUdSm0eL4QIgXtyo5ibZ8saaUoP2uSN8iyIPMzIYjHlk00baYBpLhVs="}],"size":2517,"noattachment":false,"key":"/p-pipe/-/p-pipe-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-pipe_2.0.0_1549276674362_0.17514214546693396"},"_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":1549276674629,"_cnpm_publish_time":1549276674629,"dist-tags":{"latest":"4.0.0"}}