{"library":"css-font-parser","type":"library","category":null,"description":"css-font-parser is a lightweight JavaScript utility designed to accurately parse CSS `font` shorthand and `font-family` property values. It extracts structured data such as font size, line height, and a list of font families from a given CSS string. The package is currently at version 2.0.1, with its last publication approximately a year ago. Its release cadence is driven by necessary feature enhancements or bug fixes rather than strict timeframes, reflecting its focused scope. The library's primary differentiation lies in its simplicity and direct focus on parsing these specific CSS properties, providing a programmatic way to deconstruct complex font declarations without the overhead of a full CSS parser. It is particularly useful for tools that need to analyze or manipulate font styles based on their CSS declarations.","language":"javascript","status":"active","version":"2.0.1","tags":["javascript","css","font","family","parser"],"last_verified":"Wed May 27","install":[{"cmd":"npm install css-font-parser","imports":["import { parseFont } from 'css-font-parser';","import { parseFontFamily } from 'css-font-parser';","import type { FontDeclaration, FontFamily } from 'css-font-parser';"]},{"cmd":"yarn add css-font-parser","imports":[]},{"cmd":"pnpm add css-font-parser","imports":[]}],"homepage":null,"github":"https://github.com/bramstein/css-font-parser","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/css-font-parser","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/css-font-parser/compatibility"}}