madeleine
A functional reactive server library for Node.js that allows you to have your cake, and eat it too!
Last updated 7 years ago by killdream .
Original npm · Tarball · package.json
$ cnpm install madeleine 
SYNC missed versions from official npm registry.

madeleine

Build Status NPM version Dependencies Status experimental

A functional reactive server library for Node.js that allows you to have your cake, and eat it too!

Example

var madeleine = require('madeleine')
var server    = madeleine()
var app       = server(8080)

var hello = app.flatMap(madeleine.context('/hello/*'))
               .flatMap(madeleine.get('/:user'))

hello.onValue(function(request) {
  madeleine.send(request, { status: 200
                          , body: 'Hello, ' + request.params.user })
})

app.onError(console.log)
app.onValue(function(request) {
  madeleine.send(request, { status: 404 })
})

Installing

npm install madeleine

Documentation

( ... )

Platform support

( ... )

Licence

Copyright (c) 2014 Quildreen Motta

Released under the MIT licence.

Current Tags

  • 0.0.1                                ...           latest (7 years ago)

2 Versions

  • 0.0.1                                ...           7 years ago
  • 0.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 3
Dependencies (7)
Dev Dependencies (0)
None
Dependents (2)

Copyright 2014 - 2017 © taobao.org |