MCPcopy Create free account
hub / github.com/vercel/vercel / isNodeScript

Function isNodeScript

packages/cli-exec/src/fsutils.ts:69–71  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

67 * Returns whether a resolved executable should be invoked through Node.
68 */
69export function isNodeScript(filePath: string): boolean {
70 return ['.js', '.cjs', '.mjs'].includes(path.extname(filePath));
71}
72
73/**
74 * Returns whether `child` is equal to or nested below `parent`.

Callers 2

resolveCliInvocationFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected