JSPM

chrome-location2

2.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 787
  • Score
    100M100P100Q107794F
  • License MIT

Approximates the current location of the Chrome browser across platforms.

Package Exports

  • chrome-location2

Readme

chrome-location2 npm workflow downloads

Approximates the current location of the Chrome browser across platforms.

Usage

Via Node.js:

// ESM
import chromeLocation from 'chrome-location2'

// Returns the path to Chrome as a string
console.log(chromeLocation)
// /Applications/Google Chrome.app/Contents/MacOS/Google Chrome


// CommonJS
const chromeLocation = require('chrome-location')

Supported Platforms

  • macOS (darwin)
  • Windows (win32)
  • Linux (default fallback)

License

MIT (c) Cezar Augusto.