@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)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    3
  • 0.0.1
    2

Package Sidebar

Install

npm i @coatl/http

Weekly Downloads

4

Version

0.0.2

License

MIT

Unpacked Size

9.15 kB

Total Files

12

Last publish

Collaborators

  • carlos-burelo