Skip to main content
Module

x/ts_morph/mod.ts>Project#getDirectory

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
method Project.prototype.getDirectory
import { Project } from "https://deno.land/x/ts_morph@15.1.0/mod.ts";

Gets a directory by the specified path or returns undefined if it doesn't exist.

Parameters

dirPath: string
  • Directory path.

Returns

Directory | undefined