lfmt
v0.2.1
Published
Dead simple string formatting
Downloads
244
Readme
lfmt
by Elvin Yung
Dead 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