node package manager
Loosely couple your services. Use Orgs to version and reuse your code. Create a free org »

kent

kent

experimental

heroic web framework for node.js and the browser

Usage

NPM

 
var kent = require('kent')
  , app = kent()
 
app.serve(__dirname + '/public')
 
app.connect(someConnectMiddleware())
 
app.use(function(next) {
    // kent-style middleware 
})
 

API

Application

app.serve(path[, options]) server only

app.connect([mountPath, ]fn) server only

app.use(fn)

app.listen(port[, fn]) server only

app.start() client only

app.navigate(url, body, redirect) client only

app.submit(form) client only

app.redirect(url) client only

app.refresh() client only

Router

router.use(fn)

router.on(path, fn)

License

MIT, see LICENSE.md for details.