MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / isDirectRun

Function isDirectRun

scripts/changelog-weekly.ts:549–551  ·  view source on GitHub ↗
(scriptPath: string | undefined)

Source from the content-addressed store, hash-verified

547}
548
549function isDirectRun(scriptPath: string | undefined) {
550 return scriptPath ? import.meta.url === pathToFileURL(scriptPath).href : false;
551}
552
553if (isDirectRun(process.argv[1])) {
554 main();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected