Get platform specific application process name (cross platform)
npm i process-name --save
const { ProcessName, ProcessNameConstants } = require('process-name');
const chromeProcessName = ProcessName.BROWSERS[ProcessNameConstants.BROWSERS.CHROME][process.platform];
const firefoxProcessName = ProcessName.BROWSERS[ProcessNameConstants.BROWSERS.FIREFOX][process.platform];
console.log(chromeProcessName, firefoxProcessName);
// Output
// Chrome, firefoxInterested in contributing to this project? You can log any issues or suggestion related to this library here
Read our contributing guide on getting started with contributing to the codebase