# browser-names

> Get the alternative names of a browser

Latest version **1.1.0** (published 2020-07-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install browser-names
pnpm add browser-names
yarn add browser-names
bun add browser-names
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2020-07-28 |
| First published | 2020-01-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8 |
| Dependencies | 0 |
| Unpacked size | 7.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Vincent Weevers |
| Maintainers | vweevers |
| Keywords | aliases, browser, browsers, names |

## Links

- npm: https://www.npmjs.com/package/browser-names
- Repository: https://github.com/airtap/browser-names
- Issues: https://github.com/airtap/browser-names/issues
- npm.io page: https://npm.io/package/browser-names

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2020-07-28
- 1.0.1 — 2020-01-25
- 1.0.0 — 2020-01-25

## README

# 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](http://img.shields.io/npm/v/browser-names.svg)](https://www.npmjs.org/package/browser-names)
[![node](https://img.shields.io/node/v/browser-names.svg)](https://www.npmjs.org/package/browser-names)
[![Travis](https://img.shields.io/travis/com/airtap/browser-names.svg)](https://travis-ci.com/airtap/browser-names)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Usage

```js
const names = require('browser-names')
```

Get an array of alternative names:

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

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

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

Get the title of a browser, by any name:

```js
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](https://npmjs.org) do:

```
npm install browser-names
```

## License

[MIT](LICENSE.md) © 2020-present Vincent Weevers

---
_Source: https://npm.io/package/browser-names · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
