# scroll-bar-width

> Detect browser scroll bar width.

Latest version **0.0.4** (published 2017-04-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install scroll-bar-width
pnpm add scroll-bar-width
yarn add scroll-bar-width
bun add scroll-bar-width
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2017-04-11 |
| First published | 2016-06-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Author | Vadim Namniak |
| Maintainers | namniak |
| Keywords | scroll-bar, scroll-bar-width |

## Links

- npm: https://www.npmjs.com/package/scroll-bar-width
- Repository: https://github.com/Jam3/scroll-bar-width
- Issues: https://github.com/Jam3/scroll-bar-width/issues
- npm.io page: https://npm.io/package/scroll-bar-width

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.0.4 (latest) — 2017-04-11
- 0.0.3 — 2016-06-07
- 0.0.2 — 2016-06-07
- 0.0.1 — 2016-06-07

## README

# scroll-bar-width
Detect browser scroll bar width (e.g. 15px on Mac, 25px on Windows etc)

## Example
```javascript

var scrollBarWidth = require('scroll-bar-width');

// initialize it once in your code
scrollBarWidth.init();

// get the width
var width = scrollBarWidth.get();

console.log(width) // ----> 25px on Windows
```

## Install
```sh
npm install scroll-bar-width --save
``` 
 
## Test
```sh
npm t
```
NOTE: Test requires [beefy](http://didact.us/beefy/) to be installed globally.

 
## License
MIT, see [LICENSE.md](http://github.com/Jam3/scroll-bar-width/blob/master/LICENSE) for details.

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