1.0.0 • Published 10 years ago

template-matcher v1.0.0

Weekly downloads
6
License
-
Repository
github
Last release
10 years ago

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