var outerDimensions = require('outer-dimentions');
var dimensions = outerDimensions(element);
dimensions is an object with width and height properties.
{
width: //offsetWidth + left and right margins,
height: //offsetHeight + top and bottom margins
}