A tiny (2.8kB) and fast utility for getting a MIME type from an extension or filename
Change lookup
return signature from string | void
to string | undefined
(#5): 3218148, 743d85b
Thank you @willstott101
Upgrade mime-db
version, which changes some extensions' values (#8): 30fb901
See here for visual diff
Removed:
es
Changed
asc
:: application/pgp-signature
=> application/pgp-keys
js
:: application/javascript
=> text/javascript
mjs
:: application/javascript
=> text/javascript
rtf
:: application/rtf
=> text/rtf
xml
:: application/xml
=> text/xml
Added
mimes
keys on build: f071512pnpm
in CI: 50c135bFull Changelog: https://github.com/lukeed/mrmime/compare/v1.0.1...v2.0.0
"types"
export condition (#6, #7): 0f0e3f6
Makes the TS definitions discoverable by TypeScript 4.7
Thank you @PaperStrike~!
Full Changelog: https://github.com/lukeed/mrmime/compare/v1.0.0...v1.0.1