1.2.0 • Published 11 months ago

@misskey-dev/sharp-read-bmp v1.2.0

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months ago

sharp-read-bmp

Function for reading bmp and ico and returning a sharp instance

Installation

npm install @misskey-dev/sharp-read-bmp

Usage

import { sharpBmp } from '@misskey-dev/sharp-read-bmp';
import { fileTypeFromFile } from 'file-type';

const { mime } = await fileTypeFromFile('favicon.ico');
const sharpCtx = await sharpBmp('favicon.ico', mime);

console.log(await sharpCtx.metadata());

License

MIT

1.2.0

11 months ago

1.1.1

1 year ago

1.0.0

1 year ago