5.0.0 • Published 1 year ago

parse-app-info v5.0.0

Weekly downloads
1,084
License
MIT
Repository
github
Last release
1 year ago

parse-app-info

build status code style styled with prettier made with lass license

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

PropertyDescription
environmentThe value of process.env.NODE_ENV or defaults to "development"
hostnameHostame of the computer (uses process.env.HOSTNAME or defaults to os.hostname())
ipIP address of the computer (uses process.env.IP_ADDRESS or defaults to ip.address())
nameName of the app from package.json
nodeVersion of Node.js running the app
pidProcess ID from process.pid
versionVersion of the app package.json
clusterCluster info of the app
osOS info of the app

Additional properties when the app is in a git repository

PropertyDescription
hashgit hash of latest commit if the app
tagthe latest git tag. Property is not available when there is no tag

Contributors

NameWebsite
Nick Baughhttps://niftylettuce.com
Philipp Kursawehttps://pke.github.io

License

MIT © Philipp Kursawe

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