{"library":"fast-content-type-parse","type":"library","category":null,"description":"fast-content-type-parse is a lightweight and performant utility designed to parse HTTP `Content-Type` headers in strict accordance with RFC 7231. Developed under the Fastify ecosystem, it aims for speed, outperforming Node.js's native `util#MIMEType` and other popular packages like `content-type`. The current stable version is `3.0.0`, with a release cadence that includes major updates for environmental compatibility and minor releases for maintenance. It provides both a strict parsing method that throws errors on invalid input and a 'safe' alternative that returns a default empty object for malformed headers. The package ships with TypeScript type definitions, ensuring robust development in TypeScript projects.","language":"javascript","status":"active","version":"3.0.0","tags":["javascript","content-type","rfc7231","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install fast-content-type-parse","imports":["import { parse } from 'fast-content-type-parse';","import { safeParse } from 'fast-content-type-parse';","const { parse, safeParse } = require('fast-content-type-parse');"]},{"cmd":"yarn add fast-content-type-parse","imports":[]},{"cmd":"pnpm add fast-content-type-parse","imports":[]}],"homepage":null,"github":"https://github.com/fastify/fast-content-type-parse","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/fast-content-type-parse","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/fast-content-type-parse/compatibility"}}