GitShow/sindresorhus/image-type
sindresorhus

image-type

Detect the image type of a Buffer/Uint8Array

by sindresorhus
Star on GitHubForknpm

JavaScript

425 stars16 forks7 contributorsActive · 1mo agoSince 2014v6.1.0MIT

Meet the team

See all 7 on GitHub →
sindresorhus
sindresorhus48 contributions
bjornstar
bjornstar3 contributions
BendingBender
BendingBender2 contributions
kevva
kevva2 contributions
pgilad
pgilad1 contribution
jasonharrison
jasonharrison1 contribution
Richienb
Richienb1 contribution

Languages

View on GitHub →
JavaScript64.7%
TypeScript35.3%

Commit activity

Last 12 weeks · 1 commit

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
vladavoX
Security issue with `file-type` dependencyClosedIssue

We are having a dependency vulnerability issue with used in this package. Can you bump file-type to version 21.3.x please?

vladavoX · 5mo ago
BendingBender
Module returns `false` on non-match instead of `undefined`ClosedIssue

The module docs and the TS types both document that the module returns an when no file type could be determined. But the actual implementation calls which necessarily returns a . Not sure which one is the intended return value, but at least it's incorrectly documented right now.

BendingBender · 1y ago
bjornstar
Goodbye, node.js BufferMergedPR

See - https://sindresorhus.com/blog/goodbye-nodejs-buffer If you'd prefer to only accept Uint8Array, I can update. I made it match what accepts.

bjornstar · 2y ago
Structured data for AI agents

Repository: sindresorhus/image-type. Description: Detect the image type of a Buffer/Uint8Array Stars: 425, Forks: 16. Primary language: JavaScript. Languages: JavaScript (64.7%), TypeScript (35.3%). License: MIT. Latest release: v6.1.0 (5mo ago). Open PRs: 0, open issues: 0. Last activity: 1mo ago. Community health: 85%. Top contributors: sindresorhus, bjornstar, BendingBender, kevva, pgilad, jasonharrison, Richienb.

·@ofershap

Replace github.com with gitshow.dev