Module

x/ts_morph/mod.ts>Project#getDirectoryOrThrow

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Latest
method Project.prototype.getDirectoryOrThrow
import { Project } from "https://dotland.deno.dev/x/ts_morph@22.0.0/mod.ts";

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

Parameters

dirPath: string
  • Path to create the directory at.
optional
message: string | (() => string)