1.0.0 • Published 9 years ago
template-matcher v1.0.0
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
1.0.0
9 years ago