FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

node-modules/cache-content-type: Create a full Content-Type header given a MIME type or extension and cache the result · GitHub

Repository navigation

About

Create a full Content-Type header given a MIME type or extension and cache the result

Resources

Stars

1 star

Watchers

0 watching

Forks

 
 

Repository files navigation

cache-content-type

The same as mime-types's contentType method, but with result cached.

Install

npm i cache-content-type

Usage

import { getType } from 'cache-content-type';

const contentType = getType('html');
assert.equal(contentType, 'text/html; charset=utf-8');

License

MIT

Contributors

Made with contributors-img.

About

Create a full Content-Type header given a MIME type or extension and cache the result

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages


Back | FazBrowse Home | New Git URL