🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

scroll-bar-width

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scroll-bar-width

Detect browser scroll bar width.

0.0.4
latest
Version published
Maintainers
1
Created

scroll-bar-width

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

Example


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

npm install scroll-bar-width --save

Test

npm t

NOTE: Test requires beefy to be installed globally.

License

MIT, see LICENSE.md for details.

FAQs

Package last updated on 11 Apr 2017

Did you know?

Socket

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