-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathcli-options.js
54 lines (54 loc) · 1.7 KB
/
cli-options.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
module.exports = {
format: {
type: 'string',
description: 'Output format',
default: 'table',
choices: ['table', 'json', 'csv', 'json', 'xml']
},
depth: {
description: 'Max display depth of the dependency tree',
type: 'number'
},
include: {
description: 'List of properties to include',
type: 'array',
choices: ['id', 'name', 'version', 'license', 'licenseId', 'licenseFullName', 'licenseFilePath', 'path', 'repository', 'author', 'homepage', 'dependencyLevel', 'description'],
default: ['id', 'name', 'version', 'license', 'repository', 'author', 'homepage', 'dependencyLevel']
},
production: {
alias: 'prod',
description: 'Display only the dependency tree for packages in dependencies',
type: 'boolean'
},
development: {
alias: 'dev',
description: 'Display only the dependency tree for packages in devDependencies',
type: 'boolean'
},
global: {
description: 'List packages in the global install prefix instead of in the current project',
type: 'boolean'
},
link: {
description: 'Display only dependencies which are linked',
type: 'boolean'
},
'csv.delimiter': {
description: 'character the use as the value separator',
type: 'string',
default: ','
},
table: {
description: 'just a placeholder, has not effect on its own',
default: {}
},
'table.header.*': {
description: 'changes the default header name for table output (ie: `--table.header.name=Module`)',
type: 'string',
},
'xml.asAttrs': {
description: 'uses each package property as the XML tag element, with the package name as the content (see "XML Output #2" in the Examples section) ',
type: 'boolean',
default: false
}
}