@b-c/routeparams-from-url
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

routeparams from url

Takes a route definition of the form /abc/:a/:b/:c and an actual url e.g. /abc/1/2/test and returns an object mapping {a: 1, b: 2, c: "test"}.

Relies on es2018 RegExp named capture groups.

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @b-c/routeparams-from-url

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

2 kB

Total Files

5

Last publish

Collaborators

  • maxwellium