{"library":"mime-types","type":"library","category":null,"description":"mime-types is a JavaScript utility library for working with content-types, offering functions to look up MIME types, file extensions, and associated charsets. Currently at stable version `3.0.2`, the package primarily focuses on providing accurate MIME type data sourced from `mime-db`. It differentiates itself from older `mime` modules by explicitly returning `false` for unknown types (rather than a naive fallback), avoiding instance creation (`new Mime()`), and omitting `.define()` functionality. While its core API remains compatible with `mime@1.x`, it's maintained by the `jshttp` organization and generally receives updates driven by new MIME types or minor fixes rather than frequent new features. A key aspect is its `mime-db` dependency; programmatic API changes are considered semver, but updates to the underlying MIME type data itself are not, meaning users needing strict data versioning must manage `mime-db` via package manager overrides.","language":"javascript","status":"active","version":"3.0.2","tags":["javascript","mime","types"],"install":[{"cmd":"npm install mime-types","imports":["import mime from 'mime-types';","const mime = require('mime-types');","import mime from 'mime-types';\nconst type = mime.lookup('index.html');"]},{"cmd":"yarn add mime-types","imports":[]},{"cmd":"pnpm add mime-types","imports":[]}],"homepage":null,"github":"https://github.com/jshttp/mime-types","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/mime-types","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/mime-types/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}