content-types-by-file-extension

1.0.1 • Public • Published

content-types-by-file-extension

Yields the corresponding MIME content types for file extensions. Goal is a simple and independent implementation for a simple task.

Usage

//import the module
const contentTypesByFileExtension = require('content-types-by-file-extension')
 
//This yields the ContentType for ".html" files: "text/html"
const htmlContentType = contentTypesByFileExtension['html']

Installation

This is a Node.js module available through the npm registry.

Before installing, download and install Node.js.

Installation is done using the npm install command:

$ npm i content-types-by-file-extension

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i content-types-by-file-extension

Weekly Downloads

58

Version

1.0.1

License

MIT

Unpacked Size

6.79 kB

Total Files

5

Last publish

Collaborators

  • jcgleissner