https://github.com/gocom/changelog-cli
Extracts releases notes from CHANGELOG.md via CLI
https://github.com/gocom/changelog-cli
Last synced: 9 months ago
JSON representation
Extracts releases notes from CHANGELOG.md via CLI
- Host: GitHub
- URL: https://github.com/gocom/changelog-cli
- Owner: gocom
- License: mit
- Created: 2025-07-25T21:03:30.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-08-14T18:16:20.000Z (10 months ago)
- Last Synced: 2025-08-14T20:24:25.408Z (10 months ago)
- Language: TypeScript
- Size: 78.1 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
Changelog CLI
=====
[](https://sonarcloud.io/summary/new_code?id=gocom_changelog-cli) [](https://sonarcloud.io/summary/new_code?id=gocom_changelog-cli) [](https://github.com/gocom/changelog-cli/blob/main/LICENSE) 
Opinionated CLI and Node.js backend-specific extension for [@gocom/changelog](https://github.com/gocom/changelog)
package. Build release notes from CHANGELOG.md in CI, or manually using CLI utility.
**Work in progress, not yet installable.**
⚡ Install
-----
Using npm:
```shell
$ npm install @gocom/changelog-cli
```
📖 Documentation
-----
See [API Docs](https://github.com/gocom/changelog-cli/blob/docs/main/Public/API.md).
📝 Example Usage
-----
### Via command line
```
$ changelog --help
```
### Parsing changelog file
The following would parse the given changelog document file, and returns the results from it as an array of objects:
```typescript
import {parseFile} from '@gocom/changelog-cli';
const changelog = parseFile('path/to/CHANGELOG.md');
```
The above `changelog` variable would become something along the lines of:
```typescript
[
{
version: '1.1.0-alpha.1',
isPrerelease: true,
titleStart: '',
titleEnd: '',
notes: '* Change 1.\n* Change 2.'
},
{
version: '1.0.0',
isPrerelease: false,
titleStart: '',
titleEnd: '🚀',
notes: '* Initial public release.'
}
];
```
For more see [documentation](https://github.com/gocom/changelog-cli/blob/docs/main/Public/API.md).
🛠️ Development
-----
See [CONTRIBUTING.md](https://github.com/gocom/changelog-cli/blob/main/CONTRIBUTING.md).