{"library":"cache-content-type","type":"library","category":null,"description":"A Node.js library that creates a full Content-Type header string from a MIME type or file extension, with LRU caching of results. Version 1.0+ uses the same underlying database as mime-types but adds an in-memory cache (default cache size 100) to avoid repeated lookups. Release cadence is low, updated primarily for dependency bumps and Node.js version support. Differentiator: provides cached content-type lookups, improving performance when the same extensions are queried multiple times (e.g., in HTTP servers).","language":"javascript","status":"active","version":"2.1.0","tags":["javascript","mime","content-type","lru","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install cache-content-type","imports":["import { getType } from 'cache-content-type';","const { getType } = await import('cache-content-type');","import { getType } from 'cache-content-type';"]},{"cmd":"yarn add cache-content-type","imports":[]},{"cmd":"pnpm add cache-content-type","imports":[]}],"homepage":"https://github.com/node-modules/cache-content-type#readme","github":"https://github.com/node-modules/cache-content-type","docs":null,"changelog":null,"pypi":null,"npm":"cache-content-type","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}