MCPcopy Create free account
hub / github.com/observablehq/framework / isNodeBuiltin

Function isNodeBuiltin

src/node.ts:154–156  ·  view source on GitHub ↗
(specifier: string)

Source from the content-addressed store, hash-verified

152}
153
154export function isNodeBuiltin(specifier: string): boolean {
155 return specifier.startsWith("node:") || nodeBuiltins.has(specifier.replace(/\/.*/, ""));
156}
157
158// https://github.com/evanw/esbuild/blob/9d1777f23d9b64c186345223d92f319e59388d8b/internal/resolver/resolver.go#L2802-L2874
159const nodeBuiltins = new Set([

Callers 2

node-test.tsFile · 0.85
resolveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected