Skip to content

abdelrahman-tarek-0/get-browser-path

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Get-Browser-Path

NPM version NPM downloads MIT License

very simple package to get the path of the browser currently (chrome and edge) only
works for all operating systems (windows, mac, linux)

const getBrowserPath = require('get-browser-path');

console.log(getBrowserPath('chrome')); // /Applications/Google Chrome.app/Contents/MacOS/Google Chrome (if found) 
console.log(getBrowserPath('edge')); // /Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge (if found)
console.log(getBrowserPath()); // will return the path of edg if found else it will return chrome chrome

console.log(getBrowserPath()); // will return null if no browser found

About

simple npm package to get browser path

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published