You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A package to create a tree (trie) of named routes. It is similar to [routington](https://www.npmjs.com/package/routington) except that nodes are not added by splitting path by segment ("/"). Instead the trie is built with the supplied nodes, meaning each node is a valid route.
6
+
7
+
## Install
8
+
9
+
$ npm install route-node --save
10
+
11
+
## Usage
12
+
13
+
```javascript
14
+
var RootNode =require('route-node');
15
+
16
+
// Create nodes
17
+
var usersNode =newRouteNode('users', '/users', [
18
+
newRouteNode('list', '/list'),
19
+
newRouteNode('view', '/view/:id')
20
+
]);
21
+
22
+
var ordersNode =newRouteNode('orders', '/orders', [
0 commit comments