{"id":41378806,"url":"https://github.com/valeriobelli/changesets-changelog-entry","last_synced_at":"2026-01-23T10:44:40.664Z","repository":{"id":57863639,"uuid":"528040244","full_name":"valeriobelli/changesets-changelog-entry","owner":"valeriobelli","description":"Get an entry from Changesets' changelog.","archived":false,"fork":false,"pushed_at":"2022-08-24T09:20:20.000Z","size":914,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-05T02:47:23.425Z","etag":null,"topics":["changelog","changesets","cli"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/valeriobelli.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-08-23T14:57:42.000Z","updated_at":"2023-03-17T13:12:00.000Z","dependencies_parsed_at":"2022-09-22T16:30:38.707Z","dependency_job_id":null,"html_url":"https://github.com/valeriobelli/changesets-changelog-entry","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/valeriobelli/changesets-changelog-entry","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valeriobelli%2Fchangesets-changelog-entry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valeriobelli%2Fchangesets-changelog-entry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valeriobelli%2Fchangesets-changelog-entry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valeriobelli%2Fchangesets-changelog-entry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/valeriobelli","download_url":"https://codeload.github.com/valeriobelli/changesets-changelog-entry/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valeriobelli%2Fchangesets-changelog-entry/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28689069,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T05:48:07.525Z","status":"ssl_error","status_checked_at":"2026-01-23T05:48:07.129Z","response_time":59,"last_error":"SSL_read: 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":["changelog","changesets","cli"],"created_at":"2026-01-23T10:44:40.176Z","updated_at":"2026-01-23T10:44:40.658Z","avatar_url":"https://github.com/valeriobelli.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# changesets-changelog-entry\r\n\r\nThis library extracts the logic of internal functions of [https://github.com/changesets/action](https://github.com/changesets/action) to be consumed externally. It offers two ways of consumption:\r\n\r\n- CLI\r\n- library\r\n\r\n## Installation\r\n\r\n```bash\r\nyarn add --dev changesets-changelog-entry\r\n```\r\n\r\n## Usage\r\n\r\n### CLI\r\n\r\n```bash\r\nyarn changesets-changelog-entry ./pathname/to/changelog.md @megacorpinc/example-lib@1.0.0-evil\r\n```\r\n\r\n### Library\r\n\r\n```javascript\r\nconst { getChangelogEntry, getChangelogEntryFromFile } = require('changesets-changelog-entry')\r\n\r\nconst changelog = `# @megacorpinc/example-lib\r\n\r\n## 1.0.0-evil\r\n\r\n### Major changes\r\n\r\n- Destroy the earth\r\n`\r\n\r\nconst entryFromStringContent = getChangelogEntry(changelog, '1.0.0-evil')\r\n\r\nconsole.log(entryFromStringContent.content)\r\nconsole.log(entryFromStringContent.highestLevel)\r\n\r\nconst entryFromFile = getChangelogEntryFromFile('./CHANGELOG.md', '1.0.0-evil')\r\n\r\nconsole.log(entryFromFile.content)\r\nconsole.log(entryFromFile.highestLevel)\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaleriobelli%2Fchangesets-changelog-entry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvaleriobelli%2Fchangesets-changelog-entry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaleriobelli%2Fchangesets-changelog-entry/lists"}