multi-string-replace

1.0.0 • Public • Published

multi-string-replace

Installation instructions

Run npm install multi-string-replace

Usage

An example:

var multiStringReplace = require('multi-string-replace'),
	str = 'The quick brown fox jumps over the lazy dog',
	replacementList = [
		{
			substr: 'fox',
			to: 'bird'
		},
		{
			substr: 'brown',
			to: 'yellow'
		}
	];

var mst = multiStringReplace(str,replacementList);

console.log(mst); // The quick yellow bird jumps over the lazy dog

Readme

Keywords

Package Sidebar

Install

npm i multi-string-replace

Weekly Downloads

24

Version

1.0.0

License

MIT

Last publish

Collaborators

  • christianversloot