Last Updated: February 25, 2016
·
1.137K
· leecrossley

froute - Simple Node.js Routing

RESTful API routing

So, you're writing a small RESTful API in Node.js. Do you really want to use something huge and bloated like Express? No, no you don't.

Enter "froute". Simple, powerful and functional routing for node.

froute

Install it

npm install froute --save

Require it

var froute = require("froute");

Use it

var template = "/apple/{type}/size/{size}";

froute.bind(template, function(params) {
    // Handle
});

froute.dispatch("/apple/gala/size/large");

froute links