npm.io
1.0.0 • Published 2 years ago

@types/imtype

Licence
MIT
Version
1.0.0
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.3K

Installation

npm install --save @types/imtype

Summary

This package contains type definitions for imtype (https://github.com/fatelei/imagetype).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/imtype.

index.d.ts

// Type definitions for imtype 1.0.0
// Project: https://github.com/fatelei/imagetype

export function isBMP(buffer: Uint8Array): boolean;

export function isJPG(buffer: Uint8Array): boolean;

export function isPNG(buffer: Uint8Array): boolean;

export function isGIF(buffer: Uint8Array): boolean;

export function isTIF(buffer: Uint8Array): boolean;

Additional Details

  • Last updated: Fri, 29 Mar 2024 0129 GMT
  • Dependencies: none

Credits

These definitions were written by hu0529.