modifiled
Gets a list of files changed from parent branch
Install
npm install modifiled
Example Usage
JavaScript
const modifiled = ; const config = vcs: 'Mercurial' ext: 'ts' suppressOutput: false ;const files = ;
TypeScript
; ;;
Api
modifiled(directory, [config]);
directory
Specify the absolute path (as a string) of the directory to be analysed
config
Modifiled can take in an optional config object
Default config
;
vcs
: 'Mercurial'
, 'Git'
or 'Unknown'
ext
: file extension such as 'ts'
or 'js'
suppressOutput
: if the execution will printout information to console.log