/ archiveofbelonging.org / back / node_modules / cache-content-type /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[TXT]History.md7 years ago540  
[TXT]README.md7 years ago341 f12eb36 documentaiton updates [كارل مبارك]
[   ]index.js7 years ago317  
[   ]package.json2 years ago1.8K7375cab EXHIBTION: fix overflow ellipsis cutoff [كارل مبارك]
README.md

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');
Apache/2.4.38 (Debian) Server at www.karls.computer Port 80