It allows to adjust both image and video to the size with center/cover cut format.
Allowing for example to set videos or background images scaled perfectly to the size of the contender
The tags supported by bg-cover with img and video.
import cover from "bg-cover";
let $el = document.querySelector("img");
cover($el);