{"name":"p-pipe","version":"2.0.1","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":"4205e203e981fb393e542f9e6a6a9c2fedcc134e","bugs":{"url":"https://github.com/sindresorhus/p-pipe/issues"},"homepage":"https://github.com/sindresorhus/p-pipe#readme","_id":"p-pipe@2.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-vj2f/AnJxyKIXA3KAwcaksO1y+nbZ6iMCW3YVsioYDC2z5r9Dxlz8wEU2SSXy6pZ2dq0uU2RkfneAXCDoTVenA==","shasum":"8150e576140704cd7f0ad3a2ef2e5be49309c655","tarball":"http://registry-npm.ywwl.com/p-pipe/download/p-pipe-2.0.1.tgz","fileCount":5,"unpackedSize":6755,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcj9xMCRA9TVsSAnZWagAAcHkP/3JafbJRw+/pA6LRD+m3\npVcR02aAIYMzTZhyNkkMmEaL2C4fUjTpzggelvAYTanMXPof2/k5aA6ZSGAF\nC4e/csTDZd54ENeUdO59dQYoUHQ3bUEhDjQah5dZ9A0yL9HF+bU5lf+Eouh1\nGvaaEOsx5YZNvEqMaFiYYoFWDiB0BZgPNfxqGy3rAweywh+5gu382fsTHwpZ\n4r1lq1tNOq3U2AfC0n6GMtMKJ3N+YDa/e3QK3svWhvp1aS/bVrU2r8LE4lzT\nLV/mEr3cxxlLmFq7qzYvlN+eLEXMzfHAHkUjzojmF5gRRudhy9yYuC6cMrKR\nL+9GfNbMZm4r8OqoO9MIENN714bpv9lMm3GeyGsQwTdlWa2dPxGafZ/UI0ev\ngN5N0GidbCiKi3XG3jjK86UVJxIeyKAKaC8ScsK56YPETxpFvH1aHQdEekxi\nX82NaFt65d1xJ/z6OULApx9lH08UfAEthhHqmIb4fd7vbBJpWmHxQQsue/Pn\nLrY4YpaJBYgYo4lpgaXH/clRRYbIghOmp1SHosB5eiu2crltP8UsgpipyzO4\no7uLU1D4V9bahXdZ0wS/0MHKsd1RPxCN8n2vlkj27cRFgcyW8aigcsdqYxCQ\nuO+H047EFgW4SWmo/nhKxU+KC3hFkXDhj9g1k3fT1Sjhg8RZMeipWpR71eLT\nAYUh\r\n=Ve9n\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCSkVu/NbVk0J+O6zxxgzPX9yHG4mX1bneyzfMhVtZnuwIhAPHM4C0oQWh5AwfCLKSMpqS0GJD1UHgtQHc2BFO5iGAh"}],"size":2528,"noattachment":false,"key":"/p-pipe/-/p-pipe-2.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-pipe_2.0.1_1552931915703_0.5687070061153394"},"_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":1552931915846,"_cnpm_publish_time":1552931915846,"dist-tags":{"latest":"4.0.0"}}