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

Function main

secret-manager/getSecret.js:51–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49// [END secretmanager_get_secret]
50
51async function main() {
52 const projectId = process.argv[2] || process.env.PROJECT_ID;
53 const secretId = process.argv[3] || process.env.SECRET_ID;
54
55 await getSecret(projectId, secretId);
56}
57
58if (require.main === module) {
59 main().catch(err => {

Callers 1

getSecret.jsFile · 0.70

Calls 1

getSecretFunction · 0.70

Tested by

no test coverage detected