{"_id":"@edorsey/pipeline","_rev":"1-536dcfdab8ac252f35525d056a46a2ac","name":"@edorsey/pipeline","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@edorsey/pipeline","version":"1.0.0","description":"Utility function that provides a pipeline-like operator for JavaScript","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/edorsey/pipeline.git"},"keywords":["Pipeline","JS","NodeJS"],"author":{"name":"Eric Dorsey","url":"eric@ericdorsey.com"},"license":"MIT","bugs":{"url":"https://github.com/edorsey/pipeline/issues"},"homepage":"https://github.com/edorsey/pipeline#readme","dependencies":{"lodash.curry":"^4.1.1","lodash.flow":"^3.5.0"},"gitHead":"b7210366f7a10b79bf18cf73627db5291a3bf252","_id":"@edorsey/pipeline@1.0.0","_npmVersion":"5.8.0","_nodeVersion":"8.9.1","_npmUser":{"name":"edorsey","email":"eric@ericdorsey.com"},"dist":{"integrity":"sha512-GdFt6w0Cnv6PJVo6VRfarq+ls7vAiyvhjOgnjJfhdU5F3V3pX0BHtM5kF5nyb4FsbiA6qGBVJuDE9mbXdeIScA==","shasum":"138c93dcf5103cb9124454de74fcea21e5dfd35b","tarball":"https://registry.npmjs.org/@edorsey/pipeline/-/pipeline-1.0.0.tgz","fileCount":5,"unpackedSize":1837,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbTnTZCRA9TVsSAnZWagAAGg8P/R9gSIQc5sskuISSvL26\na0NsL0/od17CwLCTvBJSGkNQb/OBDKOZ1csG2ORON86TpgMcfnK4KDQBTzRo\nyU6kYyk5dco0fVrO8piz22VTCDcZpciV+LOGys5vnOqXjlqr7F5CLYyYiEVB\ndG8WLzWHoicm3wms2xZESZQb7OaO+dEueAjFRM5fAd4IXM9xDmU+ur0qA+9n\nZ/nMSzIjLCWJoFxTl1QJ75845hPtbkVj50IHfV8MWLw8QldxkwcIzUC1SgSj\n2ymltBpWOmcHoWbZiW3H7yScpzzCBherQ8oSigxmpnQ4/FjVfdehqJdupCFf\nqoqBF5edzAUDlZCRpwfO2b6aeWw4rzyuDRfJs7OpBuCcISdiRcFV3894LYsW\nV77K7tcwE2hK8HQICDR/6zK6UlFkyHPfxxWg3L/KM5b9+kQgC6bw3kahc9yg\n6UfHNbEGgElxIL0LalDFwOEdltnByrlD2GOszjqWC3DzV7z9vqpb5zaBf4NI\n/9ZpwKw0jxiXl97kAyzk1gFcp8H9RT8dW5P2SimqDiBw19zOZBq+72qhHpyz\nr0eiHEm13H3nmb3JLGvnvD5GA6kFei+0SaMc+6qaSPGlJD+q6YwtiLodws24\nAwdXv8hkcRaqIKomLbB/dPwzS5Y77LyfOjeGuyx1XjBpyqtUYHM8EM/X3Mk1\nO6Rm\r\n=LlWx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGZdw7Auo0yJC/lZbYFojPYIM7H1D4XA/lfSR7FrRUyPAiB0azRHIW8tGGCVftqUI3lzk1gH46pOqWLWsoghkWqO2Q=="}]},"maintainers":[{"name":"edorsey","email":"eric@ericdorsey.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pipeline_1.0.0_1531868377476_0.1312130832639693"},"_hasShrinkwrap":false}},"time":{"created":"2018-07-17T22:59:37.234Z","1.0.0":"2018-07-17T22:59:37.555Z","modified":"2022-04-05T06:42:53.573Z"},"maintainers":[{"name":"edorsey","email":"eric@ericdorsey.com"}],"description":"Utility function that provides a pipeline-like operator for JavaScript","homepage":"https://github.com/edorsey/pipeline#readme","keywords":["Pipeline","JS","NodeJS"],"repository":{"type":"git","url":"git+https://github.com/edorsey/pipeline.git"},"author":{"name":"Eric Dorsey","url":"eric@ericdorsey.com"},"bugs":{"url":"https://github.com/edorsey/pipeline/issues"},"license":"MIT","readme":"# Pipeline\n\nThis module implements a pipeline-like pattern in JavaScript:\n\n```js\nconst p = require(\"pipeline\");\n\nfunction functionOne(data) {\n  data.one = true;\n  return data;\n}\n\nfunction functionTwo(data) {\n  data.two = true;\n  return data;\n}\n\nlet result = p({}).flow([\n    functionOne, \n    functionTwo\n]);\n\nconsole.log(\"result\", result);\n\n//> result { one: true, two: true }\n```\n","readmeFilename":"README.md"}