1.0.0 • Published 9 years ago

multi-string-replace v1.0.0

Weekly downloads
33
License
MIT
Repository
-
Last release
9 years ago

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
1.0.0

9 years ago