funcatron
v0.0.8
Published
A functional framework for composing Node applications
Downloads
17
Readme
Funcatron
A functional framework for composing Node applications
Documentation
See Full API Documentation (in progress).
Installation
npm install funcatron --save
or yarn add funcatron
Usage
const { funcatron } = require("funcatron")
// Pass funcatron an array of route definitions
funcatron([
{
path: "/",
method: "get",
handler: ({req, res}) => res.end("Hello World! yours sincerely, funcatron")
},
{
path: "/login",
method: "post",
handler: ({req, res}) => res.end("Post request received")
}
]).listen(8000)
Contributing
Contributions welcome on Github. All core-API changes should also be accompanied by a change-request to the documentation.
Before making a contribution, please review the Code of Conduct.
If you're new to Open Source, I'd love if Funcatron was your first project that you contribute to. Check-out the Contributing document for how to get started.
Issues
Issues gladly accepted on Github.