Skip to content

cloud-cli/http

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@cloud-cli/http

Wrapper for Node.js HTTP server

Install

npm i @cloud-cli/http

Usage

import createServer from '@cloud-cli/http';

// same API as Node.JS http module. Listens to `process.env.PORT` automatically
const server = createServer(function (request, response) {
  // ...
});

About

Wrapper around http.createServer to provide nice request logging and internal metrics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors