5.0.0 • Published 1 year ago
parse-app-info v5.0.0
parse-app-info
Parse information about a Node application process and its environment. Made for Cabin.
Table of Contents
Install
npm:
npm install parse-app-info
Usage
const parseAppInfo = require('parse-app-info');
const appInfo = parseAppInfo();
Available info
Property | Description |
---|---|
environment | The value of process.env.NODE_ENV or defaults to "development" |
hostname | Hostame of the computer (uses process.env.HOSTNAME or defaults to os.hostname() ) |
ip | IP address of the computer (uses process.env.IP_ADDRESS or defaults to ip.address() ) |
name | Name of the app from package.json |
node | Version of Node.js running the app |
pid | Process ID from process.pid |
version | Version of the app package.json |
cluster | Cluster info of the app |
os | OS info of the app |
Additional properties when the app is in a git repository
Property | Description |
---|---|
hash | git hash of latest commit if the app |
tag | the latest git tag. Property is not available when there is no tag |
Contributors
Name | Website |
---|---|
Nick Baugh | https://niftylettuce.com |
Philipp Kursawe | https://pke.github.io |
License
5.0.0
1 year ago
4.0.3
2 years ago
4.0.2
3 years ago
4.0.1
3 years ago
4.0.0
3 years ago
3.0.3
4 years ago
3.0.2
4 years ago
3.0.1
4 years ago
3.0.0
4 years ago
2.0.5
4 years ago
2.0.4
5 years ago
2.0.3
5 years ago
2.0.2
5 years ago
2.0.1
5 years ago
2.0.0
5 years ago
1.0.3
5 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago