{"id":17736643,"url":"https://github.com/parro-it/iterable-transform-replace","last_synced_at":"2025-06-18T15:35:27.250Z","repository":{"id":57296800,"uuid":"70316947","full_name":"parro-it/iterable-transform-replace","owner":"parro-it","description":"An iterable transform that apply replace to all items","archived":false,"fork":false,"pushed_at":"2020-06-03T09:21:27.000Z","size":154,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-10T21:08:26.834Z","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/parro-it.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":"2016-10-08T08:34:52.000Z","updated_at":"2023-03-04T06:29:50.000Z","dependencies_parsed_at":"2022-09-02T07:40:15.862Z","dependency_job_id":null,"html_url":"https://github.com/parro-it/iterable-transform-replace","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fiterable-transform-replace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fiterable-transform-replace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fiterable-transform-replace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fiterable-transform-replace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parro-it","download_url":"https://codeload.github.com/parro-it/iterable-transform-replace/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243593259,"owners_count":20316156,"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-26T00:23:53.711Z","updated_at":"2025-03-14T14:30:51.285Z","avatar_url":"https://github.com/parro-it.png","language":"JavaScript","readme":"# iterable-transform-replace\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/parro-it/iterable-transform-replace.svg)](https://greenkeeper.io/)\n\n\u003e An iterable transform that apply replace to all items\n\n\n## Usage\n\nThis example replace `response` with `42`:\n\n```js\nconst replace = require('iterable-transform-replace');\n\nconst source = [1, 2, 'response', 3];\nconsole.log(Array.from(replace('response', 42, source)));\n```\n\nThis will output\n\n```\n[1, 2, 42, 3]\n```\n\n[![Travis Build Status](https://img.shields.io/travis/parro-it/iterable-transform-replace/master.svg)](http://travis-ci.org/parro-it/iterable-transform-replace)\n[![NPM downloads](https://img.shields.io/npm/dt/iterable-transform-replace.svg)](https://npmjs.org/package/iterable-transform-replace)\n\n\n## API\n\n```js\nconst iterableTransformReplace = (oldItem: any, newItem: any, source: Iterable): Iterable\n```\n\nGiven an iterable source object, return another iterable with all items equal\nto `oldItem` replaced with `newItem`.\n\n## Install\n\nWith [npm](https://npmjs.org/) installed, run\n\n```\n$ npm install iterable-transform-replace\n```\n\n## See Also\n\n- [`noffle/common-readme`](https://github.com/noffle/common-readme)\n\n## License\n\nMIT\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparro-it%2Fiterable-transform-replace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparro-it%2Fiterable-transform-replace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparro-it%2Fiterable-transform-replace/lists"}