@edge-js/cache-content-type

1.0.1 • Public • Published

cache-content-type

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

Install

npm i cache-content-type

Usage

const getType = require('cache-content-type');
const contentType = getType('html');
assert(contentType === 'text/html; charset=utf-8');

Readme

Keywords

Package Sidebar

Install

npm i @edge-js/cache-content-type

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

1.54 kB

Total Files

3

Last publish

Collaborators

  • baffinlee