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

connio-health

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

connio-health

A light /health route for the Express framework as connect middleware.

  • 1.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

connio-health

A light /health route for the Express framework as connect middleware.

Useful for monitoring when application is ready to serve traffic by adding /health endpoint.

It delivers a following JSON payload:

{
  "app": "connio.app",
  "version": "1.0.0",
  "memory": {
    "rss": 95416320,
    "heapTotal": 64826112,
    "heapUsed": 42684560
  }
}
  • name - app name from package.json
  • version - app version from package.json
  • memory
    • rss - resident set size in bytes
    • heapTotal - heap total in bytes
    • heapUsed - used heap in bytes

Getting Started

$ npm install --save connio-health

In your configuration file:

var health = require('connio-health')
...
app.use(health())

By default it uses path of main file in package.json as root path.

You can also configure app root path manually:

app.use(health(__dirname + '/server'))

Keywords

FAQs

Package last updated on 01 Aug 2015

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