urlpattern
Parse and transform URL patterns.
Install
$ npm install urlpattern
Usage
Express-style Patterns
Parse a pattern into a RegExp, and its constituent placeholders.
var pattern = express; var placeholders = ;var regexp = pattern;
Subsitute variables into a pattern.
var pattern = express; pattern;// => '/user/1234'
Tests
$ npm install
$ npm test
Credits
License
Copyright (c) 2013 Jared Hanson <http://jaredhanson.net/>