{"id":22382512,"url":"https://github.com/jcoreio/pipeline","last_synced_at":"2025-10-08T07:34:09.122Z","repository":{"id":40783775,"uuid":"236348166","full_name":"jcoreio/pipeline","owner":"jcoreio","description":"pure-js alternative to pipeline operator, with type defs","archived":false,"fork":false,"pushed_at":"2022-12-10T16:07:03.000Z","size":2579,"stargazers_count":1,"open_issues_count":19,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-03T22:42:51.041Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jcoreio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-26T17:27:05.000Z","updated_at":"2020-01-27T13:04:15.000Z","dependencies_parsed_at":"2023-01-26T08:46:51.612Z","dependency_job_id":null,"html_url":"https://github.com/jcoreio/pipeline","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jcoreio/pipeline","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcoreio%2Fpipeline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcoreio%2Fpipeline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcoreio%2Fpipeline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcoreio%2Fpipeline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jcoreio","download_url":"https://codeload.github.com/jcoreio/pipeline/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcoreio%2Fpipeline/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278909523,"owners_count":26066886,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-05T00:13:18.002Z","updated_at":"2025-10-08T07:34:09.096Z","avatar_url":"https://github.com/jcoreio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @jcoreio/pipeline\n\n[![CircleCI](https://circleci.com/gh/jcoreio/pipeline.svg?style=svg)](https://circleci.com/gh/jcoreio/pipeline)\n[![Coverage Status](https://codecov.io/gh/jcoreio/pipeline/branch/master/graph/badge.svg)](https://codecov.io/gh/jcoreio/pipeline)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)\n[![npm version](https://badge.fury.io/js/%40jcoreio%2Fpipeline.svg)](https://badge.fury.io/js/%40jcoreio%2Fpipeline)\n\nPure JS alternative to pipeline operator, for use until the competing proposals have been settled/TypeScript supports it.\n\nTypeScript and Flow type defs are included with overloads for up to 30 operator functions.\n\n```\nimport pipeline from '@jcoreio/pipeline'\n\nconsole.log(\n  pipeline(\n    '{\"foo\": \"34.567\"}',\n    JSON.parse,\n    x =\u003e x.foo,\n    parseFloat,\n    Math.ceil\n  )\n)\n// prints 35\n```\n\nYou can use `lodash/flow` for the same purpose, but it doesn't have the same ergonomics as the pipeline operator,\nbecause the input comes at the end instead of the beginning:\n\n```\nimport flow from 'lodash/flow'\n\nflow(\n  JSON.parse,\n  x =\u003e x.foo,\n  parseFloat,\n  Math.ceil\n)('{\"foo\": \"34.567\"}')\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcoreio%2Fpipeline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjcoreio%2Fpipeline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcoreio%2Fpipeline/lists"}