{"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":{"integrity":"sha512-HkPfFklpZQPUKBFXzKFB6ihLriIHxnmuQdK9WmLDwe4hf2PdhhfWT/FJa+pc3bA1ywvKXtedxIRmd4Y7BTXE4w==","shasum":"7e5424569351b2ab452a47826acb93ce09ad6a2c","tarball":"http://registry-npm.ywwl.com/p-pipe/download/p-pipe-4.0.0.tgz","fileCount":5,"unpackedSize":8133,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgbwx4CRA9TVsSAnZWagAAnW8QAIjw1f3h/1R6v+ZqEeIX\nLFxkppQARpY0zKzAabEIIl1Cp+oNkHmcVOxgqB+7qzIfRCFtB2OW6bYjK2KW\nq+QL467M5nDIuBD4teu+/kj4CyeHt8Bd5yxeTTHf4gj+44grfxKaBOsl/Sld\nr/T2oG8Lco6PEuO/6GafPIxP7vSVRNx8M9CukLYk/0c2jtRM28k7XVY6gdXl\nujMxLi0D17XNBgaLUbb+qA9aZcRR4UkybpknoRTDFZTgliqZEqJn1OZH5+YQ\nUpvt+gXYzYu5pRQ6cXlMcbDQAWm4ii+hlkqxXOgl5WViAST40qTELtoiR4Cf\ngYxZFbUrY49jemzaO2wBIB7X1IFw994kPsDGaw/Kr2gN2Hz2WDwdNZ5OkRkN\n3SYVyWElWtHn7iRMtC/27cQ51ExvHWuVT0hIfJ03QmmrVLB4tmrQuXGs37cg\nu6dqLuglLUc0pt0K3MXBt6GBOfRERyOYh1It+PHJ2Cf6DlkODChcvnFXyMIY\nzW5rJKpEf+CTqq7Sn+sbWjYp3LmummnUGJRCyJtJyk1/YXlgixm5xHMogJWB\n8ZwammBZ3jCckfXGn7YpxNyJz7+Qk32mTPENZGXntpjUcfvKRtkCPzQxo2mk\n+ydAxKCP5ZOGJ+L5ZLKetGsvKTA0HXQSX8U1TjkWQ7JoLfdvNEnA4q70Fvl3\nvKsV\r\n=5Qiy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD93rvl/7VE+Th6iOSqag4+spUoy7xzv+G6lcHC/E084wIhAJOBspUVH+gF1TDsdoyRHElSJ8R+16zcskeT2qAUJaHT"}],"size":2485,"noattachment":false,"key":"/p-pipe/-/p-pipe-4.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-pipe_4.0.0_1617890424363_0.43076704272231114"},"_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":1617890424473,"_cnpm_publish_time":1617890424473,"dist-tags":{"latest":"4.0.0"}}