mapreplace

1.0.3 • Public • Published

mapreplace Build Status

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

Package Sidebar

Install

npm i mapreplace

Weekly Downloads

2

Version

1.0.3

License

MIT

Last publish

Collaborators

  • desuvader