kent

1.1.3 • Public • Published

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.

/kent/

    Package Sidebar

    Install

    npm i kent

    Weekly Downloads

    2

    Version

    1.1.3

    License

    MIT

    Last publish

    Collaborators

    • mlrawlings