path-to-params
v0.0.2
Published
provide a parse function by path-to-regexp
Downloads
11
Maintainers
Readme
path-to-params
Installation
$ npm install --save path-to-params
Example
var path2params = require('path-to-params');
var parse = path2params('/:a+/:b+');
var params = parse('/hello/world');
console.log(params);
// Output:
// { a: 'hello', b: 'world' }