v3.0.0
What's Changed
Breaking Changes
New Usage
Pass glob to check router!
Usage
$ express-router-dependency-graph [input]
Options
--cwd [Path:String] current working directory. Default: process.cwd()
--rootBaseUrl [Path:String] if pass it, replace rootDir with rootDirBaseURL in output.
--format ["json" | "markdown"] output format. Default: markdown
Examples
# analyze all ts files in src directory
$ express-router-dependency-graph "src/**/*.ts"
# analyze all ts files in src directory and output json
$ express-router-dependency-graph "src/**/*.ts" --format=json
# analyze all js and files in src directory
$ express-router-dependency-graph "src/**/*.ts" "src/**/*.js"
# change rootDir to rootDirBaseURL to output
$ express-router-dependency-graph "src/**/*.ts" --rootBaseUrl="https://github.com/owner/repo/tree/master/src"
# include node_modules
$ express-router-dependency-graph "src/**/*.ts" --noDefaultExcludes
Full Changelog: v2.0.1...v3.0.0