{"library":"content-type","type":"library","category":null,"description":"The `content-type` package provides a robust utility for creating and parsing HTTP Content-Type headers in Node.js applications, adhering strictly to RFC 7231. It is currently at version 1.0.5, indicating a mature and stable library. The release cadence is infrequent, primarily focusing on performance improvements and minor fixes, suggesting a low-churn, well-maintained codebase. Its core functionality involves parsing a Content-Type string (or directly from `req`/`res` objects) into an object with `type` and `parameters`, and conversely, formatting such an object back into a valid header string. This library is a foundational component for many HTTP servers and clients that need reliable content negotiation, differentiating itself through its minimalist API and strict RFC compliance without unnecessary abstractions.","language":"javascript","status":"active","version":"1.0.5","tags":["javascript","content-type","http","req","res","rfc7231"],"last_verified":"Wed May 27","install":[{"cmd":"npm install content-type","imports":["import * as contentType from 'content-type';","import { parse } from 'content-type';","import { format } from 'content-type';"]},{"cmd":"yarn add content-type","imports":[]},{"cmd":"pnpm add content-type","imports":[]}],"homepage":null,"github":"https://github.com/jshttp/content-type","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/content-type","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/content-type/compatibility"}}