node package manager
It’s your turn. Help us improve JavaScript. Take the 2017 JavaScript Ecosystem Survey »

center

center

center an element in window or inside another element.

var center = require('center')
 
document.body.appendChild(center(el))
 

If you want to add features, post an issue and i'll add you as collaborator.

License

MIT