minimap

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

minimap

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

var minimap = require('minimap');

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

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

minimap.never('token');