{"id":36671331,"url":"https://github.com/tosuke/pline","last_synced_at":"2026-01-12T10:41:17.775Z","repository":{"id":57325933,"uuid":"175737491","full_name":"tosuke/pline","owner":"tosuke","description":"pipeline for TS","archived":false,"fork":false,"pushed_at":"2019-03-15T07:27:09.000Z","size":6,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-08T20:40:40.991Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/tosuke.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-15T02:52:21.000Z","updated_at":"2021-06-04T11:14:17.000Z","dependencies_parsed_at":"2022-09-01T02:10:42.513Z","dependency_job_id":null,"html_url":"https://github.com/tosuke/pline","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tosuke/pline","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tosuke%2Fpline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tosuke%2Fpline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tosuke%2Fpline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tosuke%2Fpline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tosuke","download_url":"https://codeload.github.com/tosuke/pline/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tosuke%2Fpline/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338796,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T10:40:25.642Z","status":"ssl_error","status_checked_at":"2026-01-12T10:39:27.820Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-01-12T10:41:17.237Z","updated_at":"2026-01-12T10:41:17.771Z","avatar_url":"https://github.com/tosuke.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pline - pipelining for TS/JS\n\n## Example\n\n```typescript\nimport { pipe, pipeline } from 'pline'\n\nfunction flatMap\u003cT, U\u003e(f: (x: T) =\u003e Array\u003cU\u003e): (array: Array\u003cT\u003e) =\u003e Array\u003cU\u003e {\n  return (array: Array\u003cT\u003e) =\u003e {\n    let result = []\n    array.forEach(x =\u003e {\n      result = [...result, ...f(x)]\n    })\n    return result\n  }\n}\n\nfunction map\u003cT, U\u003e(f: (x: T) =\u003e U): (array: Array\u003cT\u003e) =\u003e Array\u003cU\u003e {\n  return (array: Array\u003cT\u003e) =\u003e array.map(f)\n}\n\nconst result = [1, 2, 3][pipe](\n  flatMap(x =\u003e [x, x * 10]),\n  map(x =\u003e `${x}`)\n) // [\"1\", \"10\", \"2\", \"20\", \"3\", \"30\"]\n\n\n// also\nconst func = pipeline(\n  flatMap(x =\u003e [x, x * 10]), \n  map(x =\u003e `${x}`)\n)\nconst result = func([1, 2, 3])\n```\n\n## Features\n\n- Chain functions like [\"|\u003e\" Pipeline operator](https://github.com/tc39/proposal-pipeline-operator)\n- Compose functions\n\n## How to install\n```sh\n$ npm install pline\n// yarn add pline\n```\n\n## Documentation\n\n### `pipe`\n\nchain functions\n\n### `pipeline`\n\ncompose functions","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftosuke%2Fpline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftosuke%2Fpline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftosuke%2Fpline/lists"}