1.0.3 • Published 9 years ago
mapreplace
Replace string by mapping old string to new string
Install
$ npm install --save mapreplace
Usage
var mapReplace = require('mapreplace');
mapReplace('hello world', {
'hello': 'hello again',
'world': 'internet'
})
//=> 'hello again internet'
License
MIT © Dennis Jin