Nutella with Pepperoni and Mushrooms
    Have ideas to improve npm?Join in the discussion! »

    isitforme

    0.0.5 • Public • Published

    isitforme

    Advanced router, uses an highly performant Tree route structure algorithms.

    NPM Build Status Coverage Status NPM Download Dependencies Status

    What is this?

    The "tree" defines a series of hierarchical nodes with children to optimise the search method.

    For example, the routes:

    /api/users
    /api/user/:id
    /api/user/:id/tasks
    /api/user/:id/validate
    

    defines a tree that looks like

                   api
                 /     \
              users    user
                     /     \
                 validate  :id
                          /    \   
                    validate   tasks
    

    Installation

    npm install isitforme --save

    Test

    To run our tests, clone the isitforme repo and install the dependencies.

    $ git clone https://github.com/BenoitClaveau/isitforme --depth 1
    cd isitforme
    $ npm install
    cd tests
    $ node.exe "../node_modules/mocha/bin/mocha" .

    Install

    npm i isitforme

    DownloadsWeekly Downloads

    7

    Version

    0.0.5

    License

    MIT

    Last publish

    Collaborators

    • avatar