{"id":21585952,"url":"https://github.com/magiclen/fit-html-text","last_synced_at":"2026-02-03T02:02:14.100Z","repository":{"id":148390188,"uuid":"620211496","full_name":"magiclen/fit-html-text","owner":"magiclen","description":"Fit text into its surrounding container.","archived":false,"fork":false,"pushed_at":"2024-10-22T03:39:13.000Z","size":440,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T17:55:19.597Z","etag":null,"topics":["html","typescript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/magiclen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-03-28T08:40:38.000Z","updated_at":"2025-03-09T17:40:16.000Z","dependencies_parsed_at":"2023-10-02T11:47:45.821Z","dependency_job_id":null,"html_url":"https://github.com/magiclen/fit-html-text","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/magiclen%2Ffit-html-text","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Ffit-html-text/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Ffit-html-text/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Ffit-html-text/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magiclen","download_url":"https://codeload.github.com/magiclen/fit-html-text/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248288400,"owners_count":21078904,"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":["html","typescript"],"created_at":"2024-11-24T15:12:14.580Z","updated_at":"2026-02-03T02:02:14.044Z","avatar_url":"https://github.com/magiclen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"fit-html-text\n==========\n\n[![CI](https://github.com/magiclen/fit-html-text/actions/workflows/ci.yml/badge.svg)](https://github.com/magiclen/fit-html-text/actions/workflows/ci.yml)\n\nFit text into its surrounding container.\n\n## Usage\n\n```typescript\nimport { fitText } from \"fit-html-text\";\n\nconst element = document.getElementById(\"myElement\");\n\nfitText(element, {\n    fontMinSize: 8,\n    fontMaxSize: 72,\n    containerMaxWidth: 300,\n    containerMaxHeight: 300,\n    multipleLines: false,\n});\n```\n\n## Usage for Browsers\n\n[Source](demo.html)\n\n[Demo Page](https://rawcdn.githack.com/magiclen/fit-html-text/master/demo.html)\n\n## License\n\n[MIT](LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagiclen%2Ffit-html-text","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagiclen%2Ffit-html-text","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagiclen%2Ffit-html-text/lists"}