{"library":"cache-control-esm","type":"library","category":null,"description":"cache-control-esm is a JavaScript library specifically designed for parsing and formatting HTTP Cache-Control headers in strict adherence to RFC 7234. Currently at version 1.0.0, this package is a specialized fork of the `@tusbar/cache-control` library. Its primary differentiator is its explicit use of ECMAScript modules (`export default` and named exports), making it well-suited for modern bundlers and environments, especially within projects like `axios-cache-adapter`. Unlike other solutions that may bundle Express/Connect-like middleware or extensive interpretation logic, `cache-control-esm` maintains a narrow focus solely on the low-level parsing of header strings into a `CacheControl` object and formatting such objects back into valid HTTP header values. This focused approach ensures a lightweight and reliable tool for precise Cache-Control header manipulation without unnecessary overhead. Its release cadence is typically reactive to the needs of its consuming projects.","language":"javascript","status":"active","version":"1.0.0","tags":["javascript","cache-control","http","rfc7234"],"last_verified":"Wed May 27","install":[{"cmd":"npm install cache-control-esm","imports":["import { parse } from '@rascarlito/cache-control'","import { format } from '@rascarlito/cache-control'","import { CacheControl } from '@rascarlito/cache-control'"]},{"cmd":"yarn add cache-control-esm","imports":[]},{"cmd":"pnpm add cache-control-esm","imports":[]}],"homepage":null,"github":"https://github.com/rascarlito/cache-control","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/cache-control-esm","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-esm/compatibility"}}