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

Function isFileUrlOrNodeStyleSpecifier

src/esm.ts:136–140  ·  view source on GitHub ↗
(parsed: UrlWithStringQuery)

Source from the content-addressed store, hash-verified

134 });
135
136 function isFileUrlOrNodeStyleSpecifier(parsed: UrlWithStringQuery) {
137 // We only understand file:// URLs, but in node, the specifier can be a node-style `./foo` or `foo`
138 const { protocol } = parsed;
139 return protocol === null || protocol === 'file:';
140 }
141
142 /**
143 * Named "probably" as a reminder that this is a guess.

Callers 3

resolveFunction · 0.85
getFormatFunction · 0.85
transformSourceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…