Skip to content

Commit

Permalink
Increased version and added documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
evangelion1204 committed Jan 19, 2016
1 parent 693f739 commit c316325
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ instance.add('/my_path/sub_path')
instance.remove('/my_path/sub_path') // will only remove /sub_path
```

### Clearing

Its also possible to clear all routes at once.

```js
instance.removeAll()
```

### Priority

With version 0.2.0 routes are internally sorted by priority and no longer handled FIFO, routes with many childs have a higher priority and are scanned earlier.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "radix-tree",
"version": "0.3.0",
"version": "0.3.1",
"description": "Node.js version of a radix tree usable for routers or url path based storage.",
"main": "index.js",
"engines": {
Expand Down

0 comments on commit c316325

Please sign in to comment.