You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-3
Original file line number
Diff line number
Diff line change
@@ -77,15 +77,19 @@ Options:
77
77
This might be used, if "npm install" was run with "--force" or "--legacy-peer-deps".
78
78
(default: false)
79
79
--package-lock-only Whether to only use the lock file, ignoring "node_modules".
80
-
This means the output will be based only on the few details in and the tree described by the "npm-shrinkwrap.json" or "package-lock.json", rather than the contents of "node_modules" directory.
80
+
Enabling this feature means the output will be based only on the few details in and the tree described by the "npm-shrinkwrap.json" or "package-lock.json", rather than the contents of "node_modules" directory.
81
81
(default: false)
82
82
--omit <type...> Dependency types to omit from the installation tree.
83
83
(can be set multiple times)
84
84
(choices: "dev", "optional", "peer", default: "dev" if the NODE_ENV environment variable is set to "production", otherwise empty)
85
85
--flatten-components Whether to flatten the components.
86
-
This means the actual nesting of node packages is not represented in the SBOM result.
86
+
Enabling this feature means the actual nesting of node packages is not represented in the SBOM result.
87
+
(default: false)
88
+
--deduplicate-components Whether to artificially de-duplicate the node packages.
89
+
Enabling this feature implies option "--flatten-components=true"
90
+
(default: false)
87
91
--short-PURLs Omit all qualifiers from PackageURLs.
88
-
This causes information loss in trade of shorter PURLs, which might improve digesting these strings.
92
+
Enabling this feature causes information loss in trade of shorter PURLs, which might improve digesting these strings.
89
93
(default: false)
90
94
--spec-version <version> Which version of CycloneDX spec to use.
Copy file name to clipboardExpand all lines: src/cli.ts
+16-4
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,7 @@ interface CommandOptions {
43
43
omit: Omittable[]
44
44
specVersion: Spec.Version
45
45
flattenComponents: boolean
46
+
deduplicateComponents: boolean
46
47
shortPURLs: boolean
47
48
outputReproducible: boolean
48
49
outputFormat: OutputFormat
@@ -67,7 +68,7 @@ function makeCommand (process: NodeJS.Process): Command {
67
68
newOption(
68
69
'--package-lock-only',
69
70
'Whether to only use the lock file, ignoring "node_modules".\n'+
70
-
'This means the output will be based only on the few details in and the tree described by the "npm-shrinkwrap.json" or "package-lock.json", rather than the contents of "node_modules" directory.'
71
+
'Enabling this feature means the output will be based only on the few details in and the tree described by the "npm-shrinkwrap.json" or "package-lock.json", rather than the contents of "node_modules" directory.'
71
72
).default(false)
72
73
).addOption(
73
74
newOption(
@@ -86,13 +87,19 @@ function makeCommand (process: NodeJS.Process): Command {
86
87
newOption(
87
88
'--flatten-components',
88
89
'Whether to flatten the components.\n'+
89
-
'This means the actual nesting of node packages is not represented in the SBOM result.'
90
+
'Enabling this feature means the actual nesting of node packages is not represented in the SBOM result.'
91
+
).default(false)
92
+
).addOption(
93
+
newOption(
94
+
'--deduplicate-components',
95
+
'Whether to artificially de-duplicate the node packages.\n'+
96
+
'Enabling this feature implies option "--flatten-components=true"'
90
97
).default(false)
91
98
).addOption(
92
99
newOption(
93
100
'--short-PURLs',
94
101
'Omit all qualifiers from PackageURLs.\n'+
95
-
'This causes information loss in trade of shorter PURLs, which might improve digesting these strings.'
102
+
'Enabling this feature causes information loss in trade of shorter PURLs, which might improve digesting these strings.'
96
103
).default(false)
97
104
).addOption(
98
105
newOption(
@@ -107,7 +114,7 @@ function makeCommand (process: NodeJS.Process): Command {
107
114
newOption(
108
115
'--output-reproducible',
109
116
'Whether to go the extra mile and make the output reproducible.\n'+
110
-
'This requires more resources, and might result in loss of time- and random-based-values.'
117
+
'Enabling this feature requires more resources, and might result in loss of time- and random-based-values.'
111
118
).env(
112
119
'BOM_REPRODUCIBLE'
113
120
)
@@ -178,6 +185,10 @@ export function run (process: NodeJS.Process): void {
0 commit comments