string-replace-all
Version:
Replaces all the occurrences of a string into a string with another string.
26 lines (15 loc) • 491 B
Markdown
Replaces all the occurrences of a string into a string with another string.
```shell
$ npm install --save string-replace-all
```
```js
import stringReplaceAll from 'string-replace-all';
stringReplaceAll ( 'A tiny tiny tiger', 'tiny', 'small' ); // 'A small small tiger'
```
- [string-matches](https://github.com/fabiospampinato/string-matches) - Retrieves all the matches of a regex in a string.
MIT © Fabio Spampinato