Parse information about a Node application process and its environment. Made for Cabin.
npm install parse-app-info




> Parse information about a [Node][] application process and its environment. Made for [Cabin][].
* Install
* Usage
* Available info
* Contributors
* License
[npm][]:
``sh`
npm install parse-app-info
`js
const parseAppInfo = require('parse-app-info');
const appInfo = parseAppInfo();
`
| Property | Description |
| ----------- | ---------------------------------------------------------------------------------------- |
| environment | The value of process.env.NODE_ENV or defaults to "development" |process.env.HOSTNAME
| hostname | Hostame of the computer (uses or defaults to os.hostname()) |process.env.IP_ADDRESS
| ip | IP address of the computer (uses or defaults to ip.address()) |package.json
| name | Name of the app from |process.pid
| node | Version of Node.js running the app |
| pid | Process ID from |package.json` |
| version | Version of the app
| 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 |
| Name | Website |
| ------------------- | -------------------------- |
| Nick Baugh |
| Philipp Kursawe |
##
[npm]: https://www.npmjs.com/
[cabin]: https://cabinjs.com
[node]: https://nodejs.org