6.1.0 • Published 8 years ago

server-summary v6.1.0

Weekly downloads
5
License
MIT
Repository
github
Last release
8 years ago

server-summary

NPM version build status Test coverage Downloads

Log basic server information after an http server start as ndjson.

Features

  • log local url (useful for tools like opnr)
  • log port
  • log environment
  • log process id (useful for dtrace(1), kill(1))

Usage

const summary = require('server-summary')
const http = require('http')
const bole = require('bole')

const log = bole('my-server')

process.env.NODE_ENV = 'development'

const server = http.createServer()
server.listen(1337, summary(server, log.info))

Why?

Knowing on what port your server is listening is nice to have. This module logs some basic information after your server has started to stdout.

Installation

$ npm install server-summary

License

MIT

6.1.0

8 years ago

6.0.1

8 years ago

6.0.0

8 years ago

5.0.1

8 years ago

5.0.0

8 years ago

4.0.1

9 years ago

4.0.0

9 years ago

3.3.1

9 years ago

3.3.0

9 years ago

3.2.0

9 years ago

3.1.0

9 years ago

3.0.2

9 years ago

3.0.1

9 years ago

3.0.0

9 years ago

2.0.2

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.0.0

9 years ago