subs
tiny string substitution
Installation
Install with component(1):
$ component install matthewmueller/subs
Install with npm:
$ npm install subs
Example
// subs(tpl, obj)var tpl = 'my favorite {food} is: {name}';var str = ; // currying: subs(tpl)(obj)var tpl = 'my favorite {food} is: {name}';var fn = ;var str = ;
Test
make test
License
MIT