Skip to content

release-notes/release-notes-node

develop
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Release Notes Node

Subscribe to Release Notes NPM Package Build Status MIT license

Title Release Notes Node
Specification Release Notes Draft 0.2.0
Author Alrik Zachert
License MIT

The goal of this repository is to provide a reference implementation of the Release Notes Specification.

Installation

$ npm i @release-notes/node

Load A Release Notes File

const ReleaseNotesLoader = require('@release-notes/node/lib/ReleaseNotesLoader');
const loader = new ReleaseNotesLoader();

loader.readReleaseNotesFile('./release-notes.yml', (err, releaseNotes) => {
  if (err) {
    if (err.isValidationError) {
      return void console.error(
        'Could not load release notes. Validation failed: ',
        err.validationErrors
      );
    }

    return void console.error(
      'Could not load release-notes.yml',
      err
    );
  }

  console.info(
    `Successfully loaded release notes ${releaseNotes.title}`
  );
});

LICENSE

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

About

Node.js reference implementation of the Release Notes Specification.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published