# @mapbox/mapbox-gl-supported

> A library to determine if a browser supports Mapbox GL JS

Latest version **4.1.0** (published 2026-09-02) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install @mapbox/mapbox-gl-supported
pnpm add @mapbox/mapbox-gl-supported
yarn add @mapbox/mapbox-gl-supported
bun add @mapbox/mapbox-gl-supported
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 4.1.0 |
| Published | 2026-09-02 |
| First published | 2017-12-04 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 43 |
| Maintainers | mapbox-npm-01, mapbox-npm-02, mapbox-npm-07, mapbox-npm-03, mapbox-npm-04, mapbox-npm-09, mapbox-npm-05, mapbox-npm-06, mapbox-npm-08, mapbox-npm-advanced-actions, mapbox-npm-ci, mapbox-npm, mapbox-admin, mapbox-machine-user, mbx-npm-ci-staging, mbx-npm-ci-production, mbx-npm-01-production, mbx-npm-02-production, mbx-npm-03-production, mbx-npm-04-production, mbx-npm-05-production, mbx-npm-06-production, mbx-npm-07-production, mbx-npm-08-production, mbx-npm-09-production, mbx-npm-02-staging, mbx-npm-advanced-actions-staging, mbx-npm-advanced-actions-production |

## Links

- npm: https://www.npmjs.com/package/@mapbox/mapbox-gl-supported
- Repository: https://github.com/mapbox/mapbox-gl-supported
- Homepage: https://github.com/mapbox/mapbox-gl-supported#readme
- Issues: https://github.com/mapbox/mapbox-gl-supported/issues
- npm.io page: https://npm.io/package/@mapbox/mapbox-gl-supported

## Recent versions

- 4.1.0 (latest) — 2026-09-02
- 4.0.0 — 2026-05-29
- 3.0.0 — 2024-02-19
- 2.0.1 — 2021-10-25
- 2.0.0 — 2020-12-22
- 1.5.0 — 2020-02-27
- 1.4.1 — 2019-07-11
- 1.4.0 — 2018-06-01
- 1.3.1 — 2018-03-21
- 1.3.0 — 2017-12-04

## README

# Mapbox GL JS Supported

This library determines if a browser supports [Mapbox GL JS](http://github.com/mapbox/mapbox-gl-js).

## Testing Your Browser

You may test your browser [here](http://mapbox.github.io/mapbox-gl-supported).

## Using Mapbox GL JS Supported with a `<script>` tag

```html
<script src='mapbox-gl-supported.js'></script>
<script>
if (mapboxgl.isSupported()) {
    ...
} else {
    ...
}
</script>
```

## Using Mapbox GL JS Supported as a module

```bash
npm install --save @mapbox/mapbox-gl-supported
```

```js
import {isSupported} from '@mapbox/mapbox-gl-supported';

if (isSupported()) {
    ...
}
```

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