Detect browser scroll bar width (e.g. 15px on Mac, 25px on Windows etc)
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
npm install scroll-bar-width --save
npm t
NOTE: Test requires beefy to be installed globally.
MIT, see LICENSE.md for details.