Sujs
Unopinionated, fast , simple web framework for node
Feature
Sujs is a lightweight web framework for nodejs,it is committed to a convenient interactive.it has the following features:
- Sujs's source code is base on the principle of Express,but lighter.
- Inject common methods in the form of plug-ins,no need to install.
- All source codes (including plug-ins) are recorded in my blog.click here to visit my blog
Install
$ npm install sujs
Manual
//unfinished
Quick Start
var sujs=require('sujs');
var app=sujs();
//load cookie-parser plugin
var cookieParser=sujs['cookieParser'];
//inject cookie-parser plugin
app.use(cookieParser);)
app.use(function (req,res,next) {
console.log('I am middleware');
next();
})
app.get('/',function (req,res) {
res.send('hello front end!');
})
Update
Last vision:v1.0.7
- Redirect plugin completed.
- Plug-in loading mechanism is completed.