Skip to content

Commit

Permalink
feat: add version on process info
Browse files Browse the repository at this point in the history
  • Loading branch information
lykmapipo committed Apr 10, 2019
1 parent 7b13cb2 commit 2e0d8ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,8 @@ export const processInfo = () => {
platform: process.platform,
ppid: process.ppid,
title: process.title,
uptime: process.uptime(),
version: process.version,
};
// return collected process information
return info;
Expand Down
4 changes: 4 additions & 0 deletions test/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -407,5 +407,9 @@ describe('common', () => {
expect(info.ppid).to.be.a('number');
expect(info.title).to.exist;
expect(info.title).to.be.a('string');
expect(info.uptime).to.exist;
expect(info.uptime).to.be.a('number');
expect(info.version).to.exist;
expect(info.version).to.be.a('string');
});
});

0 comments on commit 2e0d8ff

Please sign in to comment.