replace-map
v1.0.1
Published
Replace string with object map with zero dependencies.
Downloads
2
Readme
replace-map
Replace string with object map with zero dependencies.
Usage
const replaceMap = require('replace-map');
console.log(replaceMap('foobar', { foo: '123' }));
// output: 123bar