Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including ext-list with all npm packages installed. Try it out:

var extList = require("ext-list")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

ext-list v4.0.0

List of known file extensions and their MIME types

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

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free