bounding-client-rect Cross-browser getBoundingClientRect() for all Node types getBoundingClientRect() that works on DOM Elements, Ranges, and TextNodes. Installation $ npm install bounding-client-rect