0.13.1 • Published 3 years ago

kayser v0.13.1

Weekly downloads
19
License
MIT
Repository
github
Last release
3 years ago

Kayser

Async HTTP framework for Node

Installation

yarn add kayser

Or, if you prefer to use npm:

npm install --save kayser

Usage

In your package.json:

 {
 	"scripts": {
+		"start": "kayser"
 	}
 }

Basic usage

In your index.js (or the file in your main field in package.json):

module.exports = (req, res) => {
  return {
    message: 'hello world'
  }
}

With routes

const { router, get } = require('kayser/http')

const routes = new Map()

get(routes, '/', (req, res) => ({ body: 'root route' }))
get(routes, '/about', (req, res) => ({ body: 'about route' }))

module.exports = router(routes)

Configuration

TBD.

0.13.1

3 years ago

0.13.0

3 years ago

0.12.0

4 years ago

0.11.0

4 years ago

0.10.0

4 years ago

0.9.0

4 years ago

0.8.0

4 years ago

0.7.0

4 years ago

0.6.0

4 years ago

0.5.1

4 years ago

0.5.0

4 years ago

0.4.0

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.0-alpha.1

4 years ago

0.1.1-alpha.1

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago