{"id":21897862,"url":"https://github.com/luvies/mapped-replace","last_synced_at":"2026-04-12T09:04:57.144Z","repository":{"id":57291173,"uuid":"149347051","full_name":"luvies/mapped-replace","owner":"luvies","description":"Performs a replacement on a string using a map","archived":false,"fork":false,"pushed_at":"2018-09-19T22:23:52.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-16T08:33:01.340Z","etag":null,"topics":["javascript","map","mapped","node","node-js","nodejs","object","replace","string","typescript"],"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/luvies.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":"2018-09-18T20:18:55.000Z","updated_at":"2018-09-19T22:23:54.000Z","dependencies_parsed_at":"2022-09-01T15:21:32.800Z","dependency_job_id":null,"html_url":"https://github.com/luvies/mapped-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/luvies%2Fmapped-replace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luvies%2Fmapped-replace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luvies%2Fmapped-replace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luvies%2Fmapped-replace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luvies","download_url":"https://codeload.github.com/luvies/mapped-replace/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244908195,"owners_count":20529993,"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":["javascript","map","mapped","node","node-js","nodejs","object","replace","string","typescript"],"created_at":"2024-11-28T14:20:07.198Z","updated_at":"2026-04-12T09:04:57.116Z","avatar_url":"https://github.com/luvies.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mapped Replace\n![build status](https://travis-ci.com/luvies/mapped-replace.svg?branch=master) [![Coverage Status](https://coveralls.io/repos/github/luvies/mapped-replace/badge.svg?branch=master)](https://coveralls.io/github/luvies/mapped-replace?branch=master) [![npm version](https://badge.fury.io/js/mapped-replace.svg)](https://www.npmjs.com/package/mapped-replace)\n\nGiven a string and an object, will replace all the keys of the object found in the string with the values of the object. TypeScript definitions are shipped with the package.\n\n## Examples\n```ts\nmappedReplace('test string', {}) // -\u003e 'test string'\n\nmappedReplace('foo', { 'foo': 'bar' }) // -\u003e 'bar'\n\nmappedReplace('foo bar baz', {\n    'foo': 'a',\n    'bar': 'b',\n    'baz': 'c'\n}) // -\u003e 'a b c'\n\nmappedReplace('hello', { 'l': 'w', 'o': 'o uwu' }) // -\u003e 'hewwo uwu'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluvies%2Fmapped-replace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluvies%2Fmapped-replace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluvies%2Fmapped-replace/lists"}