Slight
Slight is a fast, lightweight and dependency-free HTTP server framework designed for APIs, similar to Express.
Install
npm install --save slight
Usage
var Slight = ;var slight = port: 3000; slight; slightstart { console;};
Detailed Usage
Middlewares are run in order from before
-> use
-> route functions -> finish
-> after
var Slight = ;var slight = port: 3000 optional_trailing_slash: true; slight; slight; slight; // method, route, function(s)slight; // A finish function should be defined to handle all responsesslight; slightstart { console;};
If you need more detailed usage examples, take a look at the example directory, the source code (it's quite small and hopefully fairly easy to understand), or create an issue!