{"library":"media-typer","type":"library","category":null,"description":"media-typer is a focused JavaScript utility designed for strictly parsing and formatting media types according to RFC 6838. It enables developers to deconstruct media type strings (e.g., \"image/svg+xml\") into their `type`, `subtype`, and optional `suffix` components, and conversely, to construct canonical media type strings from these parts. A key differentiator of this package is its explicit design choice to *not* handle media type parameters (such as `charset=utf-8`) or to parse full HTTP `Content-Type` headers, directing users to the `content-type` module for such broader parsing needs. The current stable version is 1.1.0. While releases are infrequent, this indicates a mature, stable, and narrowly scoped utility that receives updates primarily for maintenance or minor feature enhancements like the `test()` function.","language":"javascript","status":"maintenance","version":"1.1.0","tags":["javascript"],"install":[{"cmd":"npm install media-typer","imports":["const typer = require('media-typer')","const typer = require('media-typer');\nconst parsed = typer.parse('image/jpeg');","const typer = require('media-typer');\nconst formatted = typer.format({ type: 'text', subtype: 'html' });"]},{"cmd":"yarn add media-typer","imports":[]},{"cmd":"pnpm add media-typer","imports":[]}],"homepage":null,"github":"https://github.com/jshttp/media-typer","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/media-typer","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/media-typer/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}