MCPcopy Create free account
hub / github.com/awsdocs/aws-doc-sdk-examples / isMain

Function isMain

javascriptv3/example_code/libs/utils/util-node.js:14–14  ·  view source on GitHub ↗
(fileUrl)

Source from the content-addressed store, hash-verified

12 * @param {string | URL} fileUrl
13 */
14export const isMain = (fileUrl) => process.argv[1] === fileURLToPath(fileUrl);
15
16/**
17 * @typedef {import("node:util").ParseArgsConfig} ParseArgsConfig

Calls

no outgoing calls

Tested by

no test coverage detected