Git Product home page Git Product logo

parse-app-info's Introduction

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
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

MIT © Philipp Kursawe

parse-app-info's People

Contributors

niftylettuce avatar pke avatar shaunwarman avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.