![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | History.md | 7 years ago | 540 | |
![]() | README.md | 7 years ago | 341 | f12eb36 documentaiton updates [كارل مبارك] |
![]() | index.js | 7 years ago | 317 | |
![]() | package.json | 2 years ago | 1.8K | 7375cab EXHIBTION: fix overflow ellipsis cutoff [كارل مبارك] |
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');