1.0.0 • Published 10 years ago

min-var v1.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
10 years ago

min-var

NPM version Downloads Dependency Status

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

License