MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/nodejs-docs-samples / transformCLI

Function transformCLI

dlp/inspectGcsFileWithSampling.js:159–165  ·  view source on GitHub ↗
(infoTypes)

Source from the content-addressed store, hash-verified

157// main(...process.argv.slice(2));
158
159function transformCLI(infoTypes) {
160 return infoTypes
161 ? infoTypes.split(',').map(type => {
162 return {name: type};
163 })
164 : undefined;
165}
166
167module.exports = main;

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected