isitforme
v0.0.5
Published
Advanced route parser, uses an highly performant Tree route structure algorithms.
Downloads
28
Maintainers
Readme
isitforme
Advanced router, uses an highly performant Tree route structure algorithms.
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" .