https://github.com/skellla/server-status
[Mirror]. Main repo ->
https://github.com/skellla/server-status
nodejs server status
Last synced: 2 months ago
JSON representation
[Mirror]. Main repo ->
- Host: GitHub
- URL: https://github.com/skellla/server-status
- Owner: SkeLLLa
- License: mit
- Created: 2018-08-15T12:34:52.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-07-08T04:37:42.000Z (almost 3 years ago)
- Last Synced: 2024-10-16T09:32:05.914Z (over 1 year ago)
- Topics: nodejs, server, status
- Language: JavaScript
- Homepage: https://gitlab.com/m03geek/server-status/
- Size: 382 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# server-status
[](https://www.npmjs.com/package/@m03geek/server-status)
[](https://www.npmjs.com/package/@m03geek/server-status)
[](https://www.npmjs.com/package/@m03geek/server-status)
[](https://gitlab.com/m03geek/server-status/commits/master)
[](https://gitlab.com/m03geek/server-status/commits/master)
[](https://gitlab.com/m03geek/server-status/blob/master/LICENSE)
Returns common info about node.js server. Could be used for
## ToC
- [server-status](#server-status)
- [ToC](#toc)
- [Installation](#installation)
- [Usage](#usage)
- [Format](#format)
## Installation
```sh
npm i @m03geek/server-status --save
```
[Back to top](#toc)
## Usage
```js
const serverstatus = require('server-status');
console.log(serverstatus());
```
[Back to top](#toc)
## Format
```js
{
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](#toc)