Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/ts_morph/mod.ts>Project#getDirectoryOrThrow

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
method Project.prototype.getDirectoryOrThrow
import { Project } from "https://deno.land/x/ts_morph@21.0.1/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)