https://github.com/betasu/sujs
Unopinionated, fast , simple web framework for node
https://github.com/betasu/sujs
Last synced: 3 months ago
JSON representation
Unopinionated, fast , simple web framework for node
- Host: GitHub
- URL: https://github.com/betasu/sujs
- Owner: BetaSu
- License: mit
- Created: 2016-09-04T13:53:18.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-22T16:28:48.000Z (over 9 years ago)
- Last Synced: 2025-04-21T13:39:11.642Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 43.9 KB
- Stars: 7
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.mdown
- License: LICENSE
Awesome Lists containing this project
README
# 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
```javascript
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