Now with Partition Management

    @wuchuhengtools/promise-router
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.15 • Public • Published

    路由解析器

    Build Status codecov FOSSA Status

    Installing

    $ npm i @wuchuhengtools/promise-router

    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:

    1. File bug reports using the issue tracker.
    2. Answer questions or fix bugs on the issue tracker.
    3. 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

    Install

    npm i @wuchuhengtools/promise-router

    DownloadsWeekly Downloads

    5

    Version

    0.0.15

    License

    MIT

    Unpacked Size

    4.51 kB

    Total Files

    7

    Last publish

    Collaborators