center

center an element in window or inside another element.

npm install center
2 downloads in the last week
4 downloads in the last month

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

npm loves you