cache-content-type (1.0.1)
Published 2026-02-24 13:53:46 +00:00 by atheaadmin
Installation
registry=npm install cache-content-type@1.0.1"cache-content-type": "1.0.1"About this package
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');
Dependencies
Dependencies
| ID | Version |
|---|---|
| mime-types | ^2.1.18 |
| ylru | ^1.2.0 |
Development Dependencies
| ID | Version |
|---|---|
| egg-bin | ^4.7.1 |
| egg-ci | ^1.8.0 |
| eslint | ^5.1.0 |
| eslint-config-egg | ^7.0.0 |
| mm | ^2.2.0 |
Keywords
mime
content-type
lru