JSPM

v3-uptime-router

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q9785F
  • License ISC

An express router that adds an uptime endpoint.

Package Exports

  • v3-uptime-router

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (v3-uptime-router) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

v2-uptime-router

An express router that adds an uptime endpoint.

Usage.

const express = require('express') const router = require('v3-uptime-router');

const app = express(); app.use('/', router);

app.listen(process.env.PORT || 8080);

Version 0.0.1


  • Created a router that can be mounted on an express based app that will return a 200 OK and a JSON object with an upSince key holding the value of when the router was required.