Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

path-to-params

0.0.2 • Public • Published

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' }

Install

npm i path-to-params

DownloadsWeekly Downloads

0

Version

0.0.2

License

ISC

Last publish

Collaborators

  • avatar