Skip to main content
Module

x/typeorm/src/commands/CommandUtils.ts>CommandUtils

Forked from https://github.com/typeorm/typeorm
Latest
class CommandUtils
import { CommandUtils } from "https://deno.land/x/typeorm@v0.2.23-rc10/src/commands/CommandUtils.ts";

Command line utils functions.

Static Methods

createDirectories(directory: string): Promise<void>

Creates directories recursively.

createFile(
filePath: string,
content: string,
override?: boolean,
): Promise<void>

Creates a file with the given content in the given path.

fileExists(filePath: string)
readFile(filePath: string): Promise<string>

Reads everything from a given file and returns its content as a string.