Package Exports
- browser-names
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (browser-names) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
browser-names
Get the alternative names of a browser.
Includes names used inbrowserslist,airtap,testling, sauce labs,karma,win-detect-browsersand@httptoolkit/browser-launcher.
Usage
const names = require('browser-names')Get an array of alternative names:
names('ff') // ['firefox', 'mozilla firefox', ..]
names('firefox') // sameGet a common name to use as your main identifier, by any name:
names.common('internet explorer') // 'ie'
names.common('ie') // sameGet the title of a browser, by any name:
names.title('and_chr') // 'Google Chrome for Android'
names.title('ipad') // 'iOS Safari'All functions are case- and casing-insensitive. Their output is lowercase (except for titles). PRs for additional browsers are welcome.
Install
With npm do:
npm install browser-namesLicense
MIT © 2020-present Vincent Weevers