Nothing Prevents Misery

    @znck/match

    0.1.2 • Public • Published

    NPM version NPM downloads CircleCI codecov

    Introduction

    Tiny router (path matcher) for micro services.

    Install

    npm i @znck/match

    Usage

    const match = require('@znck/match')
    
    const params = match(/* pattern = */'/foo/:bar', /* url = */'/foo/1')
    // { bar: 1 }
    ...

    Read path-to-regex for possible pattern values.

    Contributing

    Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

    Versioning

    We use SemVer for versioning. For the versions available, see the tags on this repository.

    Author

    @znck/match © Rahul Kadyan, Released under the MIT License.
    Authored and maintained by Rahul Kadyan with help from contributors (list).

    znck.me · GitHub @Rahul Kadyan · Twitter @@znck0

    Keywords

    none

    Install

    npm i @znck/match

    DownloadsWeekly Downloads

    1

    Version

    0.1.2

    License

    MIT

    Last publish

    Collaborators

    • znck