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');

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    1,395,696
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    1,395,696
  • 1.0.0
    56

Package Sidebar

Install

npm i cache-content-type

Weekly Downloads

1,130,944

Version

1.0.1

License

MIT

Unpacked Size

2.06 kB

Total Files

4

Last publish

Collaborators

  • dead_horse