# detect-browser-platform

> Detect browser and platform

Latest version **1.0.2** (published 2021-11-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install detect-browser-platform
pnpm add detect-browser-platform
yarn add detect-browser-platform
bun add detect-browser-platform
```

## 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.0.2 |
| Published | 2021-11-24 |
| First published | 2021-11-24 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 10 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Vaduva Ionut Lucian |
| Maintainers | lucian.vaduva |
| Keywords | browser, platform |

## Links

- npm: https://www.npmjs.com/package/detect-browser-platform
- Repository: https://github.com/lucianvaduva/detect-browser-platform
- Homepage: https://github.com/lucianvaduva/detect-browser-platform#readme
- Issues: https://github.com/lucianvaduva/detect-browser-platform/issues
- npm.io page: https://npm.io/package/detect-browser-platform

## 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.0.2 (latest) — 2021-11-24
- 1.0.1 — 2021-11-24
- 1.0.0 — 2021-11-24

## README

## **Welcome**

This module is intended to detect information about **Browser brand and version, Operating System and Platform**. The detection logic is based on checking browser specific features together with User agent information.

**How to install**

    npm i detect-browser-platform

**How to use it**

    import { getEnvironmentInformation } from  'detect-browser-platform';
    
    const { browserInfo: { brand, version } } = getEnvironmentInformation();
    console.log(`Browser name: ${brand}`);
    console.log(`Browser version: ${version}`);

**Working at this moment:**

 - [x] Google Chrome  
 - [x] Mozilla Firefox  
 - [x] Opera  
 - [x] Microsoft Edge (Chromium)        
 - [x] Microsoft Edge  
 - [x] Apple Safari  
 - [x] Internet Explorer

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