{"name":"p-pipe","version":"3.1.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"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://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":"c1b6fca86848f6d1e432110f6d27e28afc445e2c","bugs":{"url":"https://github.com/sindresorhus/p-pipe/issues"},"homepage":"https://github.com/sindresorhus/p-pipe#readme","_id":"p-pipe@3.1.0","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-08pj8ATpzMR0Y80x50yJHn37NF6vjrqHutASaX5LiH5npS9XPvrUmscd9MF5R4fuYRHOxQR1FfMIlF7AzwoPqw==","shasum":"48b57c922aa2e1af6a6404cb7c6bf0eb9cc8e60e","tarball":"http://registry-npm.ywwl.com/p-pipe/download/p-pipe-3.1.0.tgz","fileCount":5,"unpackedSize":8521,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJev7fyCRA9TVsSAnZWagAAeKMQAJ7D/lQPtKup3f+jINrh\n+7VPfxHFvNu9qg/1//uk5/JnXhdaIVkQhxqXFqD3GUiaFFRiJkgB3+WAC/DP\nK7UcwQ1GlDLZtvdaDo6e3NzjcOLc7afU8whNxL5OkWgNwffvqjaN2qZ1W7+H\n6cPa7awyau9H2OASBk3eYNQDBoJlgWpGfHs2/Y5G/GiOoA1D7jBFyhsQ0/qe\nC/YW6441IgSN7FHsQh5JH2bIqAwvh7xmyh2ofFUjk0xQBdqv2zZte8L/tQmN\nB5nNOFe0Mg6Ccc5vgRRsZAsbxZhieE9h/H6efb3+0g94VhLXTQFzMzS0+Og7\nwSgxOlWbKnAYFZdFZ896FBQCurY5ZR2SYTP1dQyudzbYAKJ8vyXRgujkUPyR\nT0gBAwvLtPbNG2P/sOUz62jKgOsUCLDmQUQOnsjt3+cip7jPGt5z6F53CduS\nAjrby2uHZJLzcKQXCLgg8qElanfs/3HZUPICQ1imkO/GWGga6dchvpN9QCg4\nObLtzximPVjoUAYR2sjkFvVRUEV0bjAM50bvouODKZNNc9xY/4NhL2ZIQLaN\ndoV36ZL0fiNkCqGtktLxLBVJkBS20PF1+GDjymE1lJa8ZbNoPO0P+pK64nI6\nD5N4/TF9plhqDN6ldg2UrXHlxvzs4vPORI1tcT23gD1FkAzIwUKMnVI6rD19\nhGCZ\r\n=J/5q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCDOwbALdaQk+85juEk1z74rh5Y+lOjsz2UN8sjlOSWvAIgJ1OshnTbwBStU8hTfKU6vUH3f9gOP5ZhX+x2YiUX2SI="}],"size":2569,"noattachment":false,"key":"/p-pipe/-/p-pipe-3.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-pipe_3.1.0_1589622769743_0.2951243954400544"},"_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":1589622769884,"_cnpm_publish_time":1589622769884,"dist-tags":{"latest":"4.0.0"}}