mapreplace
1.0.3 • Public • Published mapreplace
Replace string by mapping old string to new string
$ npm install --save mapreplace
var mapReplace = require('mapreplace');
mapReplace('hello world', {
'hello': 'hello again',
'world': 'internet'
})
//=> 'hello again internet'
MIT © Dennis Jin
Package Sidebar
Install
Weekly Downloads