package
Scans a repository directory, searching for a changelog file
npm install detect-repo-changelogGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Scans a repository directory, searching for a changelog file.
Uses changelog-filename-regex to match against a variety of changelog filenames.
$ npm install detect-repo-changelog
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');
}
});$ npm test
$ npm test-cov to get coverage report
Released under the MIT License.
Estimated unpacked size across 5 packages.
17.3 kB
Includes dependencies.
4 direct · 2 outdated
^2.3.0
6.1.0
^4.6.0
4.6.0
^1.0.1
1.1.1
^1.1.0
2.0.1