Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

parse-app-info

2.0.5 • Public • Published

parse-app-info

build status code coverage 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

yarn:

yarn add parse-app-info

Usage

const parseAppInfo = require('parse-app-info');
 
const appInfo = parseAppInfo();

Available info

Property Description
environment The value of NODE_ENV
hostname Name of the computer
name Name of the app from package.json
node Version if node.js running the app
pid Process ID as in process.pid
version Version of the app package.json

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

MIT © Philipp Kursawe

Install

npm i parse-app-info

DownloadsWeekly Downloads

712

Version

2.0.5

License

MIT

Unpacked Size

9.31 kB

Total Files

6

Last publish

Collaborators

  • avatar
  • avatar