detect-repo-changelog
Scans a repository directory, searching for a changelog file
Last updated 9 years ago by satazor .
MIT · Repository · Bugs · Original npm
$ cnpm install detect-repo-changelog 
SYNC missed versions from official npm registry.

detect-repo-changelog

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

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.

Current Tags

  • 1.0.1                                ...           latest (9 years ago)

1 Versions

  • 1.0.1                                ...           9 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (8)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org