0.2.1 • Published 9 years ago

lfmt v0.2.1

Weekly downloads
32
License
MIT
Repository
github
Last release
9 years ago

lfmt

by Elvin Yung

Dead simple string formatting

Circle CI

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