Socket
Socket
Sign inDemoInstall

browser-names

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    browser-names

Get the alternative names of a browser


Version published
Weekly downloads
1.1K
decreased by-23.9%
Maintainers
1
Install size
8.38 kB
Created
Weekly downloads
 

Readme

Source

browser-names

Get the alternative names of a browser.
Includes names used in browserslist, airtap, testling, sauce labs, karma, win-detect-browsers and @httptoolkit/browser-launcher.

npm status node Travis JavaScript Style Guide

Usage

const names = require('browser-names')

Get an array of alternative names:

names('ff') // ['firefox', 'mozilla firefox', ..]
names('firefox') // same

Get a common name to use as your main identifier, by any name:

names.common('internet explorer') // 'ie'
names.common('ie') // same

Get the title of a browser, by any name:

names.title('and_chr') // 'Google Chrome for Android'
names.title('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

Keywords

FAQs

Last updated on 28 Jul 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc