{"id":23038444,"url":"https://github.com/tdjsnelling/verse","last_synced_at":"2026-02-04T01:13:01.544Z","repository":{"id":267502290,"uuid":"900921869","full_name":"tdjsnelling/verse","owner":"tdjsnelling","description":"A React component for rendering poetry","archived":false,"fork":false,"pushed_at":"2024-12-10T17:35:25.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-03T03:46:52.702Z","etag":null,"topics":["poetry","react","react-components","verse"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@tdjsnelling/verse","language":"TypeScript","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/tdjsnelling.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":"2024-12-09T18:03:47.000Z","updated_at":"2024-12-10T17:35:29.000Z","dependencies_parsed_at":"2024-12-10T19:10:31.609Z","dependency_job_id":null,"html_url":"https://github.com/tdjsnelling/verse","commit_stats":null,"previous_names":["tdjsnelling/verse"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tdjsnelling/verse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tdjsnelling%2Fverse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tdjsnelling%2Fverse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tdjsnelling%2Fverse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tdjsnelling%2Fverse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tdjsnelling","download_url":"https://codeload.github.com/tdjsnelling/verse/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tdjsnelling%2Fverse/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29063558,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-04T00:26:14.114Z","status":"ssl_error","status_checked_at":"2026-02-04T00:23:06.435Z","response_time":96,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["poetry","react","react-components","verse"],"created_at":"2024-12-15T18:18:50.962Z","updated_at":"2026-02-04T01:13:01.523Z","avatar_url":"https://github.com/tdjsnelling.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# verse\n\nA React component for rendering poetry.\n\n## Features\n\n* Line numbering\n  * Automatically recalculated if lines wrap\n* Indentation of wrapped lines\n* Preserves white space\n* Bold \u0026 italic formatting\n\n## Usage\n\n```\nnpm install @tdjsnelling/verse\n```\n\n```typescript jsx\nimport React from \"react\";\nimport Verse from \"@tdjsnelling/verse\";\nimport \"@tdjsnelling/verse/dist/index.css\";\nimport poem from \"./poem\";\n\nexport default function App() {\n  return (\n    \u003cVerse verse={poem} /\u003e\n  );\n}\n```\n\n## Options\n\n| Name              | Type    | Required | Default | Note                                                                       |\n|-------------------|---------|----------|---------|----------------------------------------------------------------------------|\n| `verse`           | String  | yes      | none    | The verse to render. Use a template literal to preserve white space        |\n| `lineHeight`      | Number  | no       | 22      | Line height in pixels                                                      |\n| `width`           | String  | no       | 100%    | A valid CSS width value                                                    |\n| `noLineNumbers`   | Boolean | no       | false   | Hide line numbers                                                          |\n| `counterSkipChar` | String  | no       | !       | Prefix lines with this character and they won't increment the line counter |\n\n## Formatting\n\nBold (`**bold**`) and italic (`*italic*`) delimiters in the supplied verse will be rendered as such.\n\nPrefixing a line with the skip character (default `!`) will mean that line does not increment the line counter. Useful for things like intra-poem paragraph titles. Empty lines do not need the skip character.\n\n## Styling\n\nCustom CSS can be supplied for the following class names:\n\n* `Verse_Verse`\n* `Verse_LineNumbers`\n* `Verse_Line`\n\n## [Demo](https://codesandbox.io/p/sandbox/txmpn5)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftdjsnelling%2Fverse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftdjsnelling%2Fverse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftdjsnelling%2Fverse/lists"}