Coder Social home page Coder Social logo

release-notes / changelog-parser Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 57 KB

The changelog parser reads changelog.md files and derivatives and converts them to release notes objects with a standardized schema.

Home Page: https://release-notes.com

License: MIT License

JavaScript 100.00%
changelog parser changelog-schema release-notes

changelog-parser's Introduction

Release Notes Changelog Parser

Subscribe to Release Notes NPM Package MIT license

About

The changelog parser reads CHANGELOG.md files and derivatives and converts them to release notes objects with a standardized schema. This allows further processing of changelog files and provides an unified access to information on version and even atomic modification level.

Installation

$ yarn add @release-notes/changelog-parser
$ npm i --save @release-notes/changelog-parser

Usage

const changelogParser = require('@release-notes/changelog-parser');
const fs = require('fs');

const changelog = fs.readFileSync('./CHANGELOG.md');
const releaseNotes = changelogParser.parse(changelog);
const json = releaseNotes.toJSON();

The changelog parser returns an instance of ReleaseNotes.


LICENSE

The files in this archive are released under MIT license. You can find a copy of this license in LICENSE.

changelog-parser's People

Contributors

alrik avatar

Stargazers

 avatar

Watchers

 avatar  avatar

changelog-parser's Issues

Add support for parsing release titles

Treat the first line of an optional release description (if it's bold) as release title.

...
## 1.0.0 - 2017-12-18
**An awesome release title**
An awesome release description 

### Added
...

should result in

const releaseNotes = changelogParser.parse(changelog);
const release = releaseNotes.findReleaseByVersion('1.0.0');

release.title === 'An awesome release title'
release.description === 'An awesome release description'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.