{"id":17963829,"url":"https://github.com/bramstein/css-font-parser","last_synced_at":"2025-04-23T02:04:18.270Z","repository":{"id":9362545,"uuid":"11216707","full_name":"bramstein/css-font-parser","owner":"bramstein","description":"A parser for the CSS font values","archived":false,"fork":false,"pushed_at":"2024-09-25T15:42:23.000Z","size":114,"stargazers_count":26,"open_issues_count":0,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-23T02:04:14.540Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bramstein.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-07-06T10:29:55.000Z","updated_at":"2024-09-25T15:42:27.000Z","dependencies_parsed_at":"2024-06-18T15:24:10.056Z","dependency_job_id":"dec8d4f5-9834-4562-bcc8-5ed9164a0040","html_url":"https://github.com/bramstein/css-font-parser","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramstein%2Fcss-font-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramstein%2Fcss-font-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramstein%2Fcss-font-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramstein%2Fcss-font-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bramstein","download_url":"https://codeload.github.com/bramstein/css-font-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250354498,"owners_count":21416752,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-29T11:45:33.297Z","updated_at":"2025-04-23T02:04:18.248Z","avatar_url":"https://github.com/bramstein.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## CSS font value parser\n\nA simple parser for parsing CSS font values in JavaScript. It has a parser for the font shorthand syntax and the font-family syntax.\n\n## Installation\n\nYou can install the parser using:\n\n```bash\nnpm install css-font-parser\n```\n\n## Usage\n\n```javascript\nimport { parseFont, parseFontFamily } from 'css-font-parser';\n\nparseFont('15px sans-serif');\n\n\u003e {\n\u003e   'font-family': ['sans-serif'],\n\u003e   'font-size': '15px'\n\u003e }\n\nparseFont('15px/18px \"Neue Helvetica\", Helvetica, sans-serif');\n\n\u003e {\n\u003e   'font-family': ['Neue Helvetica', 'Helvetica', 'sans-serif'],\n\u003e   'font-size': '15px',\n\u003e   'line-height': '18px'\n\u003e }\n\nparseFontFamily('\"Neue Helvetica\", Helvetica, system-ui, sans-serif');\n\n\u003e ['Neue Helvetica', 'Helvetica', 'system-ui', 'sans-serif']\n```\n\n## License\n\nLicensed under the three-clause BSD license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbramstein%2Fcss-font-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbramstein%2Fcss-font-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbramstein%2Fcss-font-parser/lists"}