is-changelog-path
Check if a given value is a string
that looks like a CHANGELOG file path
const isChangelogPath = ; // Relative paths ; //=> true; //=> false // Absolute paths ; //=> true; //=> false
Installation
npm install is-changelog-path
API
const isChangelogPath = ;
isChangelogPath(filePath)
filePath: any
Return: boolean
It returns true
if it takes a string
whose last path portion matches changelog-filename-regex, otherwise false
.
const isChangelogPath = ; ; //=> true; //=> true ; //=> false; //=> false; //=> false; //=> false ; //=> false
License
ISC License © 2018 Shinnosuke Watanabe