Glorified find and replace for super simple templating.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
.travis.yml
LICENSE
README.md
m.js
package.json

README.md

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');