string-templater
v1.0.0
Published
Basic string templator
Downloads
3,925
Maintainers
Readme
string-templater
Basic string templater
Usage
var templater = require('string-templater');
templater('I like {food}', {food: 'Bacon'});
// I like Bacon
templater('First do {0} then {1}', ['things', 'stuff']);
// First do things then stuff