process-name

1.0.1 • Public • Published

process-name

Build

Get platform specific application process name (cross platform)

Install

npm i process-name --save

Usage

 
const { ProcessName, ProcessNameConstants } = require('../index');
 
const chromeProcessName = ProcessName.BROWSERS[ProcessNameConstants.BROWSERS.CHROME][process.platform];
const firefoxProcessName = ProcessName.BROWSERS[ProcessNameConstants.BROWSERS.FIREFOX][process.platform];
 
console.log(chromeProcessName, firefoxProcessName);
 
// Output
// Chrome, firefox
 

Contributing

Interested 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

Contributors

Thank you to all the contributors who have helped us in making this project better 🙌

Package Sidebar

Install

npm i process-name

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

3.78 kB

Total Files

6

Last publish

Collaborators

  • arshadkazmi42