@m03geek/server-status

Module for getting simple server stats

Usage no npm install needed!

<script type="module">
  import m03geekServerStatus from 'https://cdn.skypack.dev/@m03geek/server-status';
</script>

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