0.1.1 • Published 9 years ago

minimap v0.1.1

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

minimap

Simple data mapping and string templating without the bells and whistles.

Require it

var minimap = require('minimap');

Use it

var template = 'Welcome to {siteTitle}, {name}!';
var str = minimap.map({
  siteTitle: 'NPM',
  name: 'John'
}, template);

console.log(str) // Welcome to NPM, John!

Always replace

minimap.always({'token' : 'value'});

Never replace

minimap.never('token');

0.1.1

9 years ago

0.1.0

9 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago