Skip to content

twisterghost/minimap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Glorified find and replace for super simple templating.

Resources

License

Stars

Watchers

Forks

Packages

No packages published