@mktbsh/dom-utils
v0.2.3
Published
making DOM manipulation a bit more convenient
Downloads
1
Readme
@mktbsh/dom-utils
A library for making DOM manipulation a bit more convenient.
Table of contents
Installation
npm
npm install @mktbsh/dom-utils
yarn
yarn add @mktbsh/dom-utils
pnpm
pnpm install @mktbsh/dom-utils
Examples
import { imageElementToBlob } from '@mktbsh/dom-utils'
async function main() {
const img = document.querySelector('img');
const blob = await imageElementToBlob(img);
console.log(blob.size);
}
License
Licensed under the MIT