{"library":"cache-control-parser","type":"library","category":null,"description":"cache-control-parser is a JavaScript/TypeScript utility for parsing and stringifying HTTP `Cache-Control` header directives. Its current stable version is 2.2.0, with regular updates that enhance its functionality, such as the introduction of the `stringify` function in v2.0.0. The library is designed to be fault-tolerant and case-insensitive when parsing, handling common HTTP caching scenarios robustly. Key differentiators include its zero-dependency footprint, comprehensive built-in TypeScript definitions, and the capability to both convert `Cache-Control` strings into structured JavaScript objects and convert objects back into valid header strings, making it suitable for both consuming and generating HTTP responses in Node.js and browser environments.","language":"javascript","status":"active","version":"2.2.0","tags":["javascript","cache","http","headers","http-headers","cache-control","parser","stringify","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install cache-control-parser","imports":["import { parse } from 'cache-control-parser';","import { stringify } from 'cache-control-parser';","import type { CacheControl } from 'cache-control-parser';"]},{"cmd":"yarn add cache-control-parser","imports":[]},{"cmd":"pnpm add cache-control-parser","imports":[]}],"homepage":null,"github":"https://github.com/etienne-martin/cache-control-parser","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/cache-control-parser","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/cache-control-parser/compatibility"}}