npm

lfmt

0.2.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i lfmt

Weekly Downloads

48

Version

0.2.1

License

MIT

Last publish

Collaborators

  • elvinyung