Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

0http

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

0http

Cero friction HTTP request router. The need for speed!

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.9K
decreased by-13.43%
Maintainers
1
Weekly downloads
 
Created
Source

0http

Cero friction HTTP request router. The need for speed!

Usage

const cero = require('0http')

const { 
  router,   // https://www.npmjs.com/package/find-my-way
  server    // https://nodejs.org/api/http.html#http_class_http_server
} = cero()

router.on('GET', '/hi', (req, res) => {
  res.end('Hello World!')
})

server.listen(3000)

Benchmarks

Node version: v10.14.1
Laptop: MacBook Pro 2016, 2,7 GHz Intel Core i7, 16 GB 2133 MHz LPDDR3

wrk -t8 -c50 -d5s http://127.0.0.1:3000/hi
  • 0http v1.x
    Requests/sec: 54931.66
  • restana v2.10.x
    Requests/sec: 53753.83

Note: restana is already the fastest Node.js framework listed in https://github.com/the-benchmarker/web-frameworks

Keywords

FAQs

Package last updated on 16 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc