@code1x1/browser-image-size-checker
v1.0.8
Published
Zero dependencies image size checker.
Downloads
21
Maintainers
Readme
@code1x1/browser-image-size-checker
Zero dependencies image size checker.
Requires
- URL.createObjectURL
- document.createElement
- Promise
Usage
const { width, height } = await imageSize(image);
const { width, height } = await imageSize(link);
Development
To install dependencies:
bun install
To run:
bun run index.ts
This project was created using bun init
in bun v1.0.35. Bun is a fast all-in-one JavaScript runtime.