Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ziaenezhad/runtime-identity
We need to identify who is running already. this package gives some info about that
https://github.com/ziaenezhad/runtime-identity
information nodejs runtime
Last synced: about 1 month ago
JSON representation
We need to identify who is running already. this package gives some info about that
- Host: GitHub
- URL: https://github.com/ziaenezhad/runtime-identity
- Owner: ziaenezhad
- License: mit
- Created: 2020-12-01T11:24:21.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-12-02T07:42:22.000Z (about 4 years ago)
- Last Synced: 2024-11-11T03:32:09.570Z (about 1 month ago)
- Topics: information, nodejs, runtime
- Language: TypeScript
- Homepage:
- Size: 320 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Nodejs Runtime Identity
[![npm version](https://badge.fury.io/js/runtime-identity.svg)](https://www.npmjs.com/package/runtime-identity)
We need to identify who is running already. this package gives some info about that. some thing like:
```js
{
"name": "my-nodejs-app", // `name` attribute from ./package.json
"version": "1.1.0", // `version` attribute from ./package.json
"description": "", // `descritption` attribute from ./package.json
"author": "", // `author` attribute from ./package.json
"uptime": {
"startedAt": "2020-12-02T05:51:00.188Z", // when the app started
"duration": "18 minute ago" // duration since the app started
},
"release": {
"builtAt": "2020-12-02T05:49:36Z", // when the docker image built. it must pass in the environment variables as `RELEASE_AT` as an ISO date string
"duration": "54 minutes ago", // duration since the docker image built
"git": {
"branch": "develop", // the git branch of the docker image. it must pass in the environment variables as `RELEASE_GIT_BRANCH`
"tag": "v1.1.0", // the git tag of the docker image. if the source of the CI job were a git tag. it must pass in the environment variables as `RELEASE_GIT_TAG`
"shortSHA": "4fbd3182" // the git short SHA key of the docker image. it must pass in the environment variables as `RELEASE_GIT_SHORT_SHA`
}
}
}
```## Install
```bash
npm i runtime-identity
```