Skip to main content
Module

x/deno2node/src/deps.deno.ts>Directory#getSourceFileOrThrow

Compile your Deno project to run on Node.js.
Go to Latest
method Directory.prototype.getSourceFileOrThrow
import { Directory } from "https://deno.land/x/deno2node@v1.7.1/src/deps.deno.ts";

Gets a child source file with the specified path or throws if not found.

Parameters

path: string
  • Relative or absolute path to the file.

Gets a child source file by the specified condition or throws if not found.

Parameters

condition: (sourceFile: SourceFile) => boolean
  • Condition to check the source file with.