center-div Easily center a div both horizontally and vertically using JavaScript. Installation npm install center-div Usage const centerDiv = require('center-div'); const myDiv = document.getElementById('myDiv'); centerDiv(myDiv)