/ c4f / front / node_modules / cache-content-type /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[TXT]History.md8 months ago540  
[TXT]README.md8 months ago341  
[   ]index.js8 months ago317  
[   ]package.json8 months ago861  
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