lfmt
Elvin Yung
byDead simple string formatting
Quickstart
var lfmt = require('lfmt');
var obj = {
foo: 'bar',
baz: {
quux: 'norf'
}
};
console.log(lfmt('value = {{foo}}', obj)); // 'value = bar'
console.log(lfmt('other value = {{baz.quux}}', obj)); // 'other value = norf'
Installation
Install from NPM:
npm install lfmt