package
Create a full Content-Type header given a MIME type or extension and cache the result
npm install cache-content-typeGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
The same as mime-types's contentType method, but with result cached.
npm i cache-content-typeimport { getType } from 'cache-content-type';
const contentType = getType('html');
assert.equal(contentType, 'text/html; charset=utf-8');Made with contributors-img.
fengmk2
fengmk2@gmail.com
Estimated unpacked size across 4 packages.
276.2 kB
Includes dependencies.