Skip to content

IndigoUnited/node-detect-repo-changelog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

detect-repo-changelog

NPM version Downloads Build Status Coverage Status Dependency status Dev Dependency status Greenkeeper badge

Scans a repository directory, searching for a changelog file.

Uses changelog-filename-regex to match against a variety of changelog filenames.

Installation

$ npm install detect-repo-changelog

Usage

detectRepoChangelog(dir) -> Promise

const detectRepoChangelog = require('detect-repo-changelog');

detectRepoChangelog('./some-repository-directory')
.then((changelogFile) => {
    if (changelogFile) {
        console.log(`changelog file is ${changelogFile}`);
    } else {
        console.log('no changelog detected');
    }
});

Tests

$ npm test
$ npm test-cov to get coverage report

License

Released under the MIT License.

About

Scans a repository directory, searching for a changelog file

Resources

License

Stars

Watchers

Forks

Packages

No packages published