Expand placeholders in a template string
npm install expand-template> Expand placeholders in a template string.

!Node version


```
$ npm i expand-template -S
Default functionality expands templates using {} as separators for string placeholders.
`js`
var expand = require('expand-template')()
var template = '{foo}/{foo}/{bar}/{bar}'
console.log(expand(template, {
foo: 'BAR',
bar: 'FOO'
}))
// -> BAR/BAR/FOO/FOO
Custom separators:
`js`
var expand = require('expand-template')({ sep: '[]' })
var template = '[foo]/[foo]/[bar]/[bar]'
console.log(expand(template, {
foo: 'BAR',
bar: 'FOO'
}))
// -> BAR/BAR/FOO/FOO
and MIT`.