Skip to main content
Module

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

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

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

Parameters

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

Returns

SourceFile | undefined

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

Parameters

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

Returns

SourceFile | undefined