{"id":17445983,"url":"https://github.com/jamen/babel-plugin-pull","last_synced_at":"2025-07-01T09:04:52.643Z","repository":{"id":96784012,"uuid":"89981298","full_name":"jamen/babel-plugin-pull","owner":"jamen","description":"Transform pipeline operator into pull(...) calls","archived":false,"fork":false,"pushed_at":"2017-05-02T02:06:50.000Z","size":8,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-08T02:23:56.250Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/jamen.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-02T02:05:25.000Z","updated_at":"2021-12-19T15:39:02.000Z","dependencies_parsed_at":"2023-07-25T08:30:33.992Z","dependency_job_id":null,"html_url":"https://github.com/jamen/babel-plugin-pull","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"5451c41d292f471de5c4d276bdfaf01d337a8368"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fbabel-plugin-pull","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fbabel-plugin-pull/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fbabel-plugin-pull/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fbabel-plugin-pull/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamen","download_url":"https://codeload.github.com/jamen/babel-plugin-pull/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246803043,"owners_count":20836476,"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","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-10-17T18:19:37.633Z","updated_at":"2025-04-02T11:22:25.754Z","avatar_url":"https://github.com/jamen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# babel-plugin-pull\n\n\u003e Transform pipeline operator into `pull(...)` calls\n\nThis inspired from similar [pipe](https://github.com/miraks/babel-plugin-pipe-operator) [operator](https://github.com/Swizz/babel-plugin-pipe-operator-curry) [plugins](https://github.com/michaelmitchell/babel-plugin-pipe-composition) to use [`pull-stream`](https://github.com/pull-stream/pull-stream), which provides you a whole ecosystem + [composing them together](#composition)!\n\n## Install\n\n```sh\nnpm install --save-dev babel-plugin-pull\n\n# with yarn:\nyarn add --dev babel-plugin-pull\n```\n\nThen load it in your Babel config:\n\n```js\n{\n  \"plugins\": [\"pull\"]\n}\n```\n\n## Usage\n\nIt takes input as such:\n\n```js\nsource()\n| through()\n| sink()\n```\n\nAnd transforms to:\n\n```js\npull(\n  source(),\n  through(),\n  sink()\n)\n```\n\nThis allows you to use duplex streams, and compose them!\n\n### Composition\n\nYou can create streams from other streams:\n\n```js\n// Create a source:\nvar foo = source() | through()\n\n// Create a through:\nvar bar = through() | through()\n\n// Create a sink:\nvar qux = through() | through() | sink()\n\n// Reuse any of them in another pipeline:\nfoo | bar | qux\n```\n\nThis would transform to:\n\n```js\nvar foo = pull(source(), through())\n\nvar bar = pull(through(), through())\n\nvar qux = pull(through(), through(), sink())\n\npull(foo, bar, qux)\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamen%2Fbabel-plugin-pull","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamen%2Fbabel-plugin-pull","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamen%2Fbabel-plugin-pull/lists"}