browser-names
Get the alternative names of a browser.
Includes names used inbrowserslist
,airtap
,testling
, sauce labs,karma
,win-detect-browsers
and@httptoolkit/browser-launcher
.
Usage
const names =
Get an array of alternative names:
// ['firefox', 'mozilla firefox', ..] // same
Get a common name to use as your main identifier, by any name:
names // 'ie'names // same
Get the title of a browser, by any name:
namestitle'and_chr' // 'Google Chrome for Android'namestitle'ios safari' // '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-names
License
MIT © 2020-present Vincent Weevers