{"library":"file-type-mime","type":"library","category":null,"description":"file-type-mime is a JavaScript utility designed to identify the MIME type and file extension of a given file by analyzing its binary content, typically provided as an `ArrayBuffer`. It is currently at version 0.4.7, indicating a pre-1.0 release. While specific release cadence isn't detailed, pre-1.0 versions often imply that the API might still be subject to minor breaking changes between minor versions as the library matures. This library supports a range of common file types including various image formats (BMP, GIF, JPEG, PNG, HEIC, TIFF), documents (PDF, DOCX, XLSX, PPTX, ODT), and archives (ZIP, GZ, RAR), with an optional `extra` flag to detect generic `json` and `txt` types. Its key differentiators include its lightweight nature and its focus on direct buffer analysis without external dependencies, making it suitable for both Node.js environments and browser-based file upload scenarios where direct file content analysis is required.","language":"javascript","status":"active","version":"0.4.7","tags":["javascript","mime","file","type","content","content-type","mime-type","parse","bytes","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install file-type-mime","imports":["import { parse } from 'file-type-mime';","import type { Options } from 'file-type-mime';","import type { Result } from 'file-type-mime';"]},{"cmd":"yarn add file-type-mime","imports":[]},{"cmd":"pnpm add file-type-mime","imports":[]}],"homepage":"https://file-type-mime.vercel.app","github":"https://github.com/redmundas/file-type-mime","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/file-type-mime","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/file-type-mime/compatibility"}}