{"id":30956068,"url":"https://github.com/zachleat/line-numbers","last_synced_at":"2025-10-07T05:56:22.399Z","repository":{"id":297470458,"uuid":"996915728","full_name":"zachleat/line-numbers","owner":"zachleat","description":"A web component to add line numbers next to various HTML elements","archived":false,"fork":false,"pushed_at":"2025-06-23T21:25:11.000Z","size":26,"stargazers_count":156,"open_issues_count":3,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-11T13:20:30.530Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://zachleat.github.io/line-numbers/demo.html","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/zachleat.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-06-05T16:55:51.000Z","updated_at":"2025-09-03T02:04:07.000Z","dependencies_parsed_at":"2025-06-23T22:35:07.849Z","dependency_job_id":null,"html_url":"https://github.com/zachleat/line-numbers","commit_stats":null,"previous_names":["zachleat/line-numbers"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/zachleat/line-numbers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachleat%2Fline-numbers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachleat%2Fline-numbers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachleat%2Fline-numbers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachleat%2Fline-numbers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zachleat","download_url":"https://codeload.github.com/zachleat/line-numbers/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachleat%2Fline-numbers/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278728316,"owners_count":26035412,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-09-11T12:02:53.477Z","updated_at":"2025-10-07T05:56:22.378Z","avatar_url":"https://github.com/zachleat.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Unencumbered `\u003cline-numbers\u003e` Web Component\n\n- [**Demo**](https://zachleat.github.io/line-numbers/demo.html)\n- [npm package](https://www.npmjs.com/package/@zachleat/line-numbers)\n\n```\nnpm install @zachleat/line-numbers\n```\n\n## Features\n\n- ✅ `\u003cpre\u003e` supported\n- ✅ `\u003ctextarea\u003e` supported (even when adding or removing lines)\n- ✅ CSS `overflow` supported (with obtrusive/visible or nonobtrusive scrollbars)\n- ✅ Numbers are excluded from content flow (not selectable, important for copy paste components!)\n- ✅ Use _any_ [CSS counter style](https://developer.mozilla.org/en-US/docs/Web/CSS/counter#counter-style) via `--uln-number-type`\n- ✅ Change the starting index for counter via (`\u003cline-numbers start=\"999\"\u003e`)\n- ✅ Numbers are unobtrusive by default to reduce layout shift (opt-in to obtrusive behavior via `\u003cline-numbers obtrusive\u003e`)\n\n### Limitations\n\nTrying to keep this one as simple as possible, so please note the following:\n\n- Line wrapping is **not** supported (`white-space: pre` or `white-space: nowrap` only, and this is enforced by the component)\n- Elements using `contenteditable` are **not** supported\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzachleat%2Fline-numbers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzachleat%2Fline-numbers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzachleat%2Fline-numbers/lists"}