ext-list

List of known file extensions and their MIME types

  • Types
  • ESM
  • CJS
License
MIT
Install Size
-(225.6 kB)
Vulns
0
Published

Get started

$npm install ext-list
$pnpm add ext-list
$yarn add ext-list
$bun add ext-list
$deno add npm:ext-list
$vlt install ext-list
$vp add ext-list

Weekly DownloadsAcross all versions

Node.js
>=4

Versions

View all versions
4.0.0
latest

Readme

ext-list Build Status

Return a list of known file extensions and their MIME types

Install

$ npm install ext-list

Usage

const extList = require('ext-list');

extList();
//=> Map {'123' => 'application/vnd.lotus-1-2-3', 'ez' => 'application/andrew-inset', ...}

API

extList()

Returns a Map with the extensions as keys and their content types as values.

License

MIT © Kevin Mårtensson