@m03geek/server-status

Module for getting simple server stats

Stats

StarsIssuesVersionUpdatedCreatedSize
@m03geek/server-status
001.1.13 years ago3 years agoMinified + gzip package size for @m03geek/server-status in KB

Readme

server-status

NPM Version Downloads Count Vunerabilities Count Build Status Coverage Status License

Returns common info about node.js server. Could be used for

ToC

Installation

npm i @m03geek/server-status --save

Back to top

Usage

const serverstatus = require('server-status');
console.log(serverstatus());

Back to top

Format

{ 
  name: '@m03geek/server-status', // your server name from package.json
  version: '1.0.0', // your server version from package.json
  now: 2018-08-15T12:18:14.284Z,
  uptime: '0d 00:00:01',
  uptimeSec: 0.817,
  title: 'node',
  runtime: { node: 'v10.8.0' } 
}

Back to top

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.