1.0.3 • Published 7 years ago
madbet v1.0.3
Introduction
Madbet is a super-lightweight TypeScript middleware server framework for Node.js, based on the built-in http
module.
Installation
npm install --save madbet
Usage
import { Madbet } from 'madbet'
const app = new Madbet()
// middlewares can go here using app.use()
app.start().listen(80)
Public API
class Madbet {
// MadbetMiddleware is from the 'madbet-middleware' module
// it is a blueprint (super and abstract class) for all other Madbet middlewares
use(middleware: MadbetMiddleware): void
// returns a Server from the built-in Node.js 'http' module
// the listen method can be called on Server
start(): Server
}
Credits
Kaleab S. Melkie (kaleabmelkie@gmail.com)
License
MIT License Copyright (c) 2017, Kaleab S. Melkie. All rights reserved.