0.0.2 • Published 2 years ago

@coatl/http v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Coatl/http

@coatl/http is a library for building HTTP services like a express server but more fast 🚀

Usage

import { Http } from '@coatl/http'

const app = new Http() // Create a new instance of Http

app.get('/:username', (req, res) => {
  res.send(`Hello ${req.params.username}`)
})

app.run()

Features

  • Middleware support
  • Route params
  • Route queries
  • Async Await support
  • Static files
  • Cors support
  • Body parser (json, text, html)