MCPcopy
hub / github.com/TypeStrong/ts-node / main

Function main

src/bin.ts:43–56  ·  view source on GitHub ↗
(
  argv: string[] = process.argv.slice(2),
  entrypointArgs: Record<string, any> = {}
)

Source from the content-addressed store, hash-verified

41 * smaller git diff.
42 */
43export function main(
44 argv: string[] = process.argv.slice(2),
45 entrypointArgs: Record<string, any> = {}
46) {
47 const args = parseArgv(argv, entrypointArgs);
48 const state: BootstrapState = {
49 shouldUseChildProcess: false,
50 isInChildProcess: false,
51 isCli: true,
52 tsNodeScript: __filename,
53 parseArgvResult: args,
54 };
55 return bootstrap(state);
56}
57
58/**
59 * @internal

Callers 6

bin-cwd.tsFile · 0.90
bin-esm.tsFile · 0.90
bin-script.tsFile · 0.90
bin-transpile.tsFile · 0.90
bin.tsFile · 0.70

Calls 2

bootstrapFunction · 0.85
parseArgvFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…