detect-repo-changelog
Scans a repository directory, searching for a changelog file
Last updated 10 years ago by satazor .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm 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 (10 years ago)

2 Versions

  • 1.0.1                                ...           10 years ago
  • 1.0.0                                ...           10 years ago
Maintainers (1)
Downloads
Total 14
Today 0
This Week 0
This Month 8
Last Day 0
Last Week 1
Last Month 1
Dependencies (4)
Dev Dependencies (8)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE