forked from tomaszRzepkowski/owasp-dependency-check
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
executable file
·23 lines (17 loc) · 955 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env node
const { program } = require('commander');
const { run } = require('./lib/dependency-check');
program
.allowUnknownOption()
.option('-o, --out <path>', 'the folder to write reports to', './dependency-check-reports')
.option('--bin <path>', 'directory to which the dependency-check CLI will be installed', './dependency-check-bin')
.option('--force-install', 'install the dependency-check CLI even if there already is one (will be overwritten)');
program.addHelpText('after', `
You can also use any arguments supported by the Owasp Dependency Check CLI tool, see: https://jeremylong.github.io/DependencyCheck/dependency-check-cli/arguments.html
Some defaults are provided:
- project Default: "name" from package.json in working directory
- data Default: /tmp/dependency-check-data
- format Default: HTML and JSON
- scan Default: 'src' folder in working directory`);
program.parse(process.argv);
run();