detect-repo-changelog

Scans a repository directory, searching for a changelog file

MIT 2 个版本
安装
npm install detect-repo-changelog
yarn add detect-repo-changelog
pnpm add detect-repo-changelog
bun add detect-repo-changelog
README

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.

版本列表
1.0.1 2016-09-15
1.0.0 2016-09-15