@mktbsh/dom-utils
TypeScript icon, indicating that this package has built-in type declarations

0.2.3 • Public • Published

@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

Readme

Keywords

Package Sidebar

Install

npm i @mktbsh/dom-utils

Weekly Downloads

1

Version

0.2.3

License

MIT

Unpacked Size

17.4 kB

Total Files

8

Last publish

Collaborators

  • mktbsh