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

health-checkup

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

health-checkup

A health check facility to check the status of your modules

  • 1.0.52
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12
decreased by-20%
Maintainers
1
Weekly downloads
 
Created
Source

A health :heart: check facility to check the status :+1::-1: of your modules

Coverage Status Known Vulnerabilities Version Downloads

One function to check the health status of all your app modules.

Features

  • Cache :clock10: check results (able to set expiration time) :white_check_mark:
  • Supports Bluebird :bird: promises :white_check_mark:

How to install

npm install health-checkup

How to use

Use it in your app

Set up health checks that should be performed during a checkup later on

const Health = require('health-checkup')

class MyService {
  constructor () {
    this._status = 'ok'

    Health.addCheck('my-service', () => {
      return Promise.try(() => {
        if (this._status !== 'ok') {
          throw new Error(`My Service status is ${this._status}`)
        }
      })
    })
  }
}

Perform a checkup and retrieve health report

Health.checkup()
  .then((report) => console.log(report))

How to contribute

You can contribute either with code (e.g., new features, bug fixes and documentation) or by donating 5 EUR. You can read the contributing guidelines for instructions on how to contribute with code.

All donation proceedings will go to the Sverige för UNHCR, a swedish partner of the UNHCR - The UN Refugee Agency, a global organisation dedicated to saving lives, protecting rights and building a better future for refugees, forcibly displaced communities and stateless people.

Used by

  • health-checkup - A kickass :muscle: web server :scream_cat: with all the bells :bell: and whistles :sparkles:

License

Read the license for permissions and limitations.

FAQs

Package last updated on 01 Sep 2021

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