0.2.1 • Published 9 years ago
lfmt v0.2.1
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