template-matcher
v1.0.0
Published
lodash.template pattern matching extracted into an seperate module
Downloads
3
Readme
template-matcher
lodash.template pattern matching extracted into an seperate module
Install
npm install template-matcher --save
Usage
var matcher = require('template-matcher');
var matches = matcher('<div><input type="${attr}"/>${content}</div>', /* options */); // Same params as lodash.template
console.log(matches); // ['attr', 'content']
Credit
See lodash.template