madbet
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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.

Package Sidebar

Install

npm i madbet

Weekly Downloads

1

Version

1.0.3

License

MIT

Last publish

Collaborators

  • kaleab14