![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | History.md | 8 months ago | 540 | |
![]() | README.md | 8 months ago | 341 | |
![]() | index.js | 8 months ago | 317 | |
![]() | package.json | 8 months ago | 861 |
The same as mime-types's contentType method, but with result cached.
npm i cache-content-type
const getType = require('cache-content-type');
const contentType = getType('html');
assert(contentType === 'text/html; charset=utf-8');