@jequest/jequest
v0.0.1
Published
Very small library that parse the route and return promise
Downloads
1
Readme
Installing
$ npm i @wuchuhengtools/jequest
Usage
import router from '@wuchuhengtools/promise-router'
// ...
router('/me/devices/:id/files/:fileId', '/me/devices/11111/files/22222').then(e => {
console.log(e) // { "routeParams": { "id": "sdfasdfadsfasd", "fileId": "22222" }
})
Contributing
You can contribute in one of three ways:
- File bug reports using the issue tracker.
- Answer questions or fix bugs on the issue tracker.
- Contribute new features or update the wiki.
The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.
License
MIT