# string-mapreplace

> Replace parts of string using map.

Latest version **0.1.5** (published 2018-09-24) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install string-mapreplace
pnpm add string-mapreplace
yarn add string-mapreplace
bun add string-mapreplace
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.1.5 |
| Published | 2018-09-24 |
| First published | 2017-12-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | wolfram77@gmail.com |
| Maintainers | wolfram77 |
| Keywords | string, map, replace |

## Links

- npm: https://www.npmjs.com/package/string-mapreplace
- Repository: https://github.com/nodef/string-mapreplace
- Homepage: https://github.com/nodef/string-mapreplace#readme
- Issues: https://github.com/nodef/string-mapreplace/issues
- npm.io page: https://npm.io/package/string-mapreplace

## Alternatives

- [@mce/gif](https://npm.io/package/@mce/gif.md) — 2.6K weekly downloads
- [cleanse](https://npm.io/package/cleanse.md) — 173 weekly downloads
- [str](https://npm.io/package/str.md) — 127 weekly downloads
- [naming](https://npm.io/package/naming.md) — 95 weekly downloads
- [tap-telco-api](https://npm.io/package/tap-telco-api.md) — 19 weekly downloads

## Recent versions

- 0.1.5 (latest) — 2018-09-24
- 0.1.4 — 2018-01-06
- 0.1.3 — 2017-12-24
- 0.1.2 — 2017-12-07
- 0.1.1 — 2017-12-07
- 0.1.0 — 2017-12-07
- 0.0.8 — 2017-12-07
- 0.0.7 — 2017-12-07
- 0.0.6 — 2017-12-07
- 0.0.5 — 2017-12-07
- 0.0.4 — 2017-12-07
- 0.0.3 — 2017-12-07
- 0.0.2 — 2017-12-07
- 0.0.1 — 2017-12-07

## README

# string-mapreplace

> NOTE: [string-mapreplace](https://www.npmjs.com/package/string-mapreplace) was renamed to [@extra-string/map-replace](https://www.npmjs.com/package/@extra-string/map-replace).
[![NPM](https://nodei.co/npm/string-mapreplace.png)](https://nodei.co/npm/string-mapreplace/)

Replace parts of [string] using [map].

```javascript
const mapReplace = require('string-mapreplace');
// mapReplace(<string>, <map>)

mapReplace('alpha beta', new Map().set('alpha', 'α').set('beta', 'β'));
// 'α β'
mapReplace('gamma DELTA', new Map().set('gamma', 'γ').set('delta', 'δ'));
// 'γ DELTA'
mapReplace('Epsilon ZETA', new Map().set(/epsilon/gi, 'ε').set(/zeta/gi, 'ζ'));
// 'ε ζ'
```


[string]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String
[map]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map

---
_Source: https://npm.io/package/string-mapreplace · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
