muxjs-http

1.0.12 • Public • Published

MuxJS

HTTP framework for Node.js inspired by the package mux in go.

const MuxJS = require('muxjs-http')

MuxJS.ListenAndServe(3000)

const r = MuxJS.NewRouter()

r.HandleFunc('/', handler).Method('GET')

function handler(w, r) {
    w.Send(`Hello World!`)
}

Installation

$ npm install muxjs-http

Documentation/Demonstration

https://github.com/robin-andreasson/MuxJS/tree/beta/demonstration

Package Sidebar

Install

npm i muxjs-http

Weekly Downloads

1

Version

1.0.12

License

MIT

Unpacked Size

53.6 kB

Total Files

20

Last publish

Collaborators

  • robster0