madeleine

0.0.1 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i madeleine

Weekly Downloads

1

Version

0.0.1

License

none

Last publish

Collaborators

  • killdream