0.1.1 • Published 2 years ago
vanilla-replace v0.1.1
vanilla-replace
A simple key-value string replace library.
Usage
import VanillaReplace from 'vanilla-replace';
const str = VanillaReplace.replace('{bread} with {animal_product} {is} {animal_product}{bread}', {
bread: 'bread',
animal_product: 'egg'
});
console.log(str); // prints "bread with egg {is} eggbread"