scroll-bar-width
Detect browser scroll bar width (e.g. 15px on Mac, 25px on Windows etc)
Example
var scrollBarWidth = ; // initialize it once in your codescrollBarWidth; // get the widthvar width = scrollBarWidth; console // ----> 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.