route-params
v0.2.0
Published
Get parameters from a route with segments
Downloads
242
Readme
route-params
Get parameters from a route with segments
Install
npm install route-params --save
Usage
let routeParams = require('route-params')
let params = routeParams('/test/:id', '/test/123')
console.log(params) // {id: '123'}
Run Tests
npm test