Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@studiohyperdrive/express-status

Package Overview
Dependencies
Maintainers
15
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@studiohyperdrive/express-status

Express status-page solution used at Studio Hyperdrive

latest
Source
npmnpm
Version
2.0.1
Version published
Maintainers
15
Created
Source

Express Status

Express status-page solution used at Studio Hyperdrive

Table of contents

  • Getting Started
  • Usage

Getting Started

Install the package

# NPM
npm install --save @studiohyperdrive/express-status

# Yarn
yarn add --save @studiohyperdrive/express-status

Usage

import { ExpressStatusRouter } from '@studiohyperdrive/express-status';

...
// Exposes '/status' in the router.
app.use(ExpressStatusRouter);

ExpressStatusRouter

An Express Router that exposes GET /status.

Usage:

import { ExpressStatusRouter } from '@studiohyperdrive/express-status';

...

app.use(ExpressStatusRouter);

ExpressStatusController

The controller that takes care of handling the route callback. Using the controller gives you the flexibility of adding your own endpoint.

Usage:

import { ExpressStatusController } from '@studiohyperdrive/express-status';

...

const expressStatusController = new ExpressStatusController();

router.route('/status').get(expressStatusController.get);

Keywords

express

FAQs

Package last updated on 24 Sep 2024

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