1.0.0 • Published 9 years ago
min-var v1.0.0
min-var
Smallest var template replace
Installation
npm i min-var
Usage
Use $var
or ${var}
var render = require('min-var')
render('foo=$foo bar=${bar} notexist=$notexist notexist2=${notexist2} end', {
foo: 'myfoo',
bar: 'mybar'
})
// => foo=myfoo bar=mybar notexist= notexist2= end
License
1.0.0
9 years ago