Skip to content
/ sujs Public
forked from BetaSu/sujs

Unopinionated, fast , simple web framework for node

License

Notifications You must be signed in to change notification settings

jyxtsgx/sujs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

  1. Sujs's source code is base on the principle of Express,but lighter.
  2. Inject common methods in the form of plug-ins,no need to install.
  3. 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.

License

MIT

About

Unopinionated, fast , simple web framework for node

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%