expand-template
Expand placeholders in a template string.
Install
1 | $ npm i expand-template -S |
Usage
Default functionality expands templates using {} as separators for string placeholders.
1 | var expand = require('expand-template')() |
Custom separators:
1 | var expand = require('expand-template')({ sep: '[]' }) |
License
All code, unless stated otherwise, is dual-licensed under WTFPL and MIT.