@misskey-dev/sharp-read-bmp
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

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

Weekly Downloads

1,870

Version

1.2.0

License

ISC

Unpacked Size

5.26 kB

Total Files

5

Last publish

Collaborators

  • samunohito
  • kakkokari-gtyih
  • anatawa12
  • acid-chicken
  • syuilo
  • aqz