content-type is a JavaScript library for parsing and manipulating HTTP Content-Type headers. It offers utilities for extracting media type and parameters, creating properly formatted header values from structured data, and checking if a Content-Type matches a specific type. Ideal for Node.js and browser environments, it simplifies working with content types in web applications and APIs, ensuring accurate data interpretation and construction. It handles edge cases and enforces RFC 7231 compliance.
The content-type npm package has infrequent releases. Initial release v0.0.1 was in October 2013, followed by v1.0.0 and v1.0.1 in February 2015. Further releases include v1.0.2 in May 2016 and v1.0.3 and v1.0.4 in September 2017. The most recent release, v1.0.5, occurred in January 2023. There have been no releases since January 2023.
The npm package "content-type" exhibited fluctuating download numbers between March 2024 and August 2025. Download counts generally increased over time, peaking in July 2025. August 2025 downloads show slightly lower numbers, but the data is not yet complete for the whole month.