@coatl/http
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

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

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

Package Sidebar

Install

npm i @coatl/http

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

9.15 kB

Total Files

12

Last publish

Collaborators

  • carlos-burelo