{"_id":"p-pipe","_rev":"259354","name":"p-pipe","description":"Compose promise-returning & async functions into a reusable pipeline","dist-tags":{"latest":"4.0.0"},"maintainers":[{"name":"npm:sindresorhus","email":""},{"name":"sindresorhus","email":""}],"time":{"modified":"2023-03-27T17:07:17.000Z","created":"2016-10-21T05:07:45.691Z","4.0.0":"2021-04-08T14:00:24.473Z","3.1.0":"2020-05-16T09:52:49.884Z","3.0.0":"2019-04-06T11:24:58.500Z","2.0.1":"2019-03-18T17:58:35.846Z","2.0.0":"2019-02-04T10:37:54.629Z","1.2.0":"2017-07-29T00:07:14.885Z","1.1.0":"2017-05-12T17:42:51.720Z","1.0.0":"2016-10-21T05:07:45.691Z"},"users":{},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-pipe.git"},"versions":{"4.0.0":{"name":"p-pipe","version":"4.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"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["promise","pipe","pipeline","compose","composition","combine","flow","serial","functions","reusable","async","await","promises","bluebird"],"devDependencies":{"ava":"^3.15.0","sinon":"^10.0.0","tsd":"^0.14.0","xo":"^0.38.2"},"gitHead":"1b7b43a0985e1eb8d4e7d26f0da78498668e3a53","bugs":{"url":"https://github.com/sindresorhus/p-pipe/issues"},"homepage":"https://github.com/sindresorhus/p-pipe#readme","_id":"p-pipe@4.0.0","_nodeVersion":"12.20.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"7e5424569351b2ab452a47826acb93ce09ad6a2c","size":2485,"noattachment":false,"key":"/p-pipe/-/p-pipe-4.0.0.tgz","tarball":"http://name.csiicloud.com:7001/p-pipe/download/p-pipe-4.0.0.tgz"},"directories":{},"maintainers":[{"name":"npm:sindresorhus","email":""},{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-pipe_4.0.0_1617890424363_0.43076704272231114"},"_hasShrinkwrap":false,"publish_time":1617890424473,"_cnpm_publish_time":1617890424473,"_cnpmcore_publish_time":"2021-12-13T15:57:40.075Z"},"3.1.0":{"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":{"shasum":"48b57c922aa2e1af6a6404cb7c6bf0eb9cc8e60e","size":2569,"noattachment":false,"key":"/p-pipe/-/p-pipe-3.1.0.tgz","tarball":"http://name.csiicloud.com:7001/p-pipe/download/p-pipe-3.1.0.tgz"},"maintainers":[{"name":"npm:sindresorhus","email":""},{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-pipe_3.1.0_1589622769743_0.2951243954400544"},"_hasShrinkwrap":false,"publish_time":1589622769884,"_cnpm_publish_time":1589622769884},"3.0.0":{"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":{"shasum":"ab1fb87c0b8dd79b3bb03a8a23680fc9d054e132","size":2329,"noattachment":false,"key":"/p-pipe/-/p-pipe-3.0.0.tgz","tarball":"http://name.csiicloud.com:7001/p-pipe/download/p-pipe-3.0.0.tgz"},"maintainers":[{"name":"npm:sindresorhus","email":""},{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-pipe_3.0.0_1554549898380_0.4227274707151625"},"_hasShrinkwrap":false,"publish_time":1554549898500,"_cnpm_publish_time":1554549898500},"2.0.1":{"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":{"shasum":"8150e576140704cd7f0ad3a2ef2e5be49309c655","size":2528,"noattachment":false,"key":"/p-pipe/-/p-pipe-2.0.1.tgz","tarball":"http://name.csiicloud.com:7001/p-pipe/download/p-pipe-2.0.1.tgz"},"maintainers":[{"name":"npm:sindresorhus","email":""},{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-pipe_2.0.1_1552931915703_0.5687070061153394"},"_hasShrinkwrap":false,"publish_time":1552931915846,"_cnpm_publish_time":1552931915846},"2.0.0":{"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":{"shasum":"0ba37bfd83ef863f8b54e11b9b942526a0d6c2ed","size":2517,"noattachment":false,"key":"/p-pipe/-/p-pipe-2.0.0.tgz","tarball":"http://name.csiicloud.com:7001/p-pipe/download/p-pipe-2.0.0.tgz"},"maintainers":[{"name":"npm:sindresorhus","email":""},{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-pipe_2.0.0_1549276674362_0.17514214546693396"},"_hasShrinkwrap":false,"publish_time":1549276674629,"_cnpm_publish_time":1549276674629},"1.2.0":{"name":"p-pipe","version":"1.2.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":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["promise","pipe","pipeline","compose","composition","combine","flow","serial","functions","reusable","async","await","promises","bluebird"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"55625f01407435fb65e80ab6f7a34d6e1cb36e49","bugs":{"url":"https://github.com/sindresorhus/p-pipe/issues"},"homepage":"https://github.com/sindresorhus/p-pipe#readme","_id":"p-pipe@1.2.0","_shasum":"4b1a11399a11520a67790ee5a0c1d5881d6befe9","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"4b1a11399a11520a67790ee5a0c1d5881d6befe9","size":1972,"noattachment":false,"key":"/p-pipe/-/p-pipe-1.2.0.tgz","tarball":"http://name.csiicloud.com:7001/p-pipe/download/p-pipe-1.2.0.tgz"},"maintainers":[{"name":"npm:sindresorhus","email":""},{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-pipe-1.2.0.tgz_1501286833926_0.5472726412117481"},"directories":{},"publish_time":1501286834885,"_hasShrinkwrap":false,"_cnpm_publish_time":1501286834885},"1.1.0":{"name":"p-pipe","version":"1.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"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["promise","pipe","pipeline","compose","composition","combine","flow","serial","functions","reusable","async","await","promises","bluebird"],"devDependencies":{"ava":"*","xo":"*"},"xo":{"esnext":true},"gitHead":"25b546b502b1281f2a4e404c0122bb437728db7f","bugs":{"url":"https://github.com/sindresorhus/p-pipe/issues"},"homepage":"https://github.com/sindresorhus/p-pipe#readme","_id":"p-pipe@1.1.0","_shasum":"2e9dc7cc57ce67d2ce2db348ca03f28731854075","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"2e9dc7cc57ce67d2ce2db348ca03f28731854075","size":2006,"noattachment":false,"key":"/p-pipe/-/p-pipe-1.1.0.tgz","tarball":"http://name.csiicloud.com:7001/p-pipe/download/p-pipe-1.1.0.tgz"},"maintainers":[{"name":"npm:sindresorhus","email":""},{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/p-pipe-1.1.0.tgz_1494610971464_0.26622557477094233"},"directories":{},"publish_time":1494610971720,"_hasShrinkwrap":false,"_cnpm_publish_time":1494610971720},"1.0.0":{"name":"p-pipe","version":"1.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":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["promise","pipe","pipeline","compose","composition","combine","flow","serial","functions","reusable","async","await","promises","bluebird"],"devDependencies":{"ava":"*","xo":"*"},"xo":{"esnext":true},"gitHead":"fcd63133317101bb014b7db131eca24fe3f11a77","bugs":{"url":"https://github.com/sindresorhus/p-pipe/issues"},"homepage":"https://github.com/sindresorhus/p-pipe#readme","_id":"p-pipe@1.0.0","_shasum":"acd16e38fbed8e94d5b9bc6fb79759a39fe481d2","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.6.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"acd16e38fbed8e94d5b9bc6fb79759a39fe481d2","size":1832,"noattachment":false,"key":"/p-pipe/-/p-pipe-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/p-pipe/download/p-pipe-1.0.0.tgz"},"maintainers":[{"name":"npm:sindresorhus","email":""},{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/p-pipe-1.0.0.tgz_1477026463515_0.7999331965111196"},"directories":{},"publish_time":1477026465691,"_cnpm_publish_time":1477026465691,"_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","_attachments":{},"homepage":"https://github.com/sindresorhus/p-pipe#readme","bugs":{"url":"https://github.com/sindresorhus/p-pipe/issues"},"license":"MIT"}