
Product
Socket Brings Supply Chain Security to skills.sh
Socket is now scanning AI agent skills across multiple languages and ecosystems, detecting malicious behavior before developers install, starting with skills.sh's 60,000+ skills.
@nxtedition/mime
Advanced tools
MIME type lookup and extension resolution with built-in support for broadcast and professional media formats missing from the standard `mime` package.
MIME type lookup and extension resolution with built-in support for broadcast and professional media formats missing from the standard mime package.
npm install @nxtedition/mime
import { lookup } from '@nxtedition/mime'
lookup('video.mxf') // 'application/mxf'
lookup('video.mp4') // 'video/mp4'
lookup('video.nut') // 'video/x-nut'
lookup('audio.ac3') // 'audio/ac3'
lookup('subs.stl') // 'application/x-ebu-stl'
lookup('subs.scc') // 'text/x-scc'
import { extension } from '@nxtedition/mime'
extension('video/mp4') // 'mp4'
extension('video/x-dnxhd') // 'dnxhd'
extension('audio/ac3') // 'ac3'
extension('application/x-ebu-stl') // 'stl'
extension('video/quicktime', 'clip.mov') // 'mov'
Types handled beyond the standard mime package:
| Extension | MIME Type | Format |
|---|---|---|
.nut | video/x-nut | NUT container |
.dnxhd | video/x-dnxhd | Avid DNxHD/DNxHR |
.dv | video/x-dv | DV video |
.h265 | video/h265 | Raw HEVC stream |
.av1 | video/av1 | Raw AV1 stream |
.ffv1 | video/ffv1 | FFV1 archival codec |
.vc1 | video/vc1 | VC-1 video |
.ac3 | audio/ac3 | Dolby Digital |
.eac3 | audio/eac3 | Dolby Digital Plus |
.opus | audio/opus | Opus audio |
.flac | audio/flac | FLAC lossless |
.pcm-s16le | audio/x-pcm-s16le | Raw 16-bit PCM |
.pcm-s24le | audio/x-pcm-s24le | Raw 24-bit PCM |
.pcm-s32le | audio/x-pcm-s32le | Raw 32-bit PCM |
.stl | application/x-ebu-stl | EBU STL subtitles |
.scc | text/x-scc | Scenarist Closed Captions |
.cap | application/x-cap | Softel CAP captions |
.890 | application/x-890 | Cavena 890 subtitles |
.pac | application/x-pac | Screen Electronics PAC |
.ass | text/x-ass | Advanced SubStation Alpha |
.ssa | text/x-ssa | SubStation Alpha |
.exr | image/x-exr | OpenEXR |
.cin | image/x-cin | Cineon |
.ism | application/vnd.ms-sstr+xml | Smooth Streaming |
lookup(name: string): string | nullReturns the MIME type for the given filename or path, or null if unknown.
extension(mimeType: string, fileName?: string): string | nullReturns the file extension for the given MIME type, or null if unknown. The optional fileName parameter is used to disambiguate (e.g. video/quicktime → mov when the filename ends in .mov).
MIT
FAQs
MIME type lookup and extension resolution with built-in support for broadcast and professional media formats missing from the standard `mime` package.
The npm package @nxtedition/mime receives a total of 0 weekly downloads. As such, @nxtedition/mime popularity was classified as not popular.
We found that @nxtedition/mime demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 10 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket is now scanning AI agent skills across multiple languages and ecosystems, detecting malicious behavior before developers install, starting with skills.sh's 60,000+ skills.

Product
Socket now supports PHP with full Composer and Packagist integration, enabling developers to search packages, generate SBOMs, and protect their PHP dependencies from supply chain threats.

Security News
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.