Replaces all the occurrences of a string into a string with another string.
$ npm install --save string-replace-all
import stringReplaceAll from 'string-replace-all';
stringReplaceAll ( 'A tiny tiny tiger', 'tiny', 'small' ); // 'A small small tiger'
- string-matches - Retrieves all the matches of a regex in a string.
MIT © Fabio Spampinato