Module

x/ts_morph/ts_morph.js>InMemoryFileSystemHost

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
class InMemoryFileSystemHost
implements FileSystemHost
import { InMemoryFileSystemHost } from "https://dotland.deno.dev/x/ts_morph@17.0.0/ts_morph.js";

An implementation of a file system that exists in memory only.

Constructors

new
InMemoryFileSystemHost()

Constructor.

Methods

copy(srcPath: string, destPath: string): Promise<void>
copySync(srcPath: string, destPath: string): void
delete(path: string): Promise<void>
deleteSync(path: string): void
directoryExists(dirPath: string): Promise<boolean>
directoryExistsSync(dirPath: string): boolean
fileExists(filePath: string): Promise<boolean>
fileExistsSync(filePath: string): boolean
glob(patterns: ReadonlyArray<string>): Promise<string[]>
globSync(patterns: ReadonlyArray<string>): string[]
isCaseSensitive(): boolean
mkdir(dirPath: string): Promise<void>
mkdirSync(dirPath: string): void
move(srcPath: string, destPath: string): Promise<void>
moveSync(srcPath: string, destPath: string): void
readDirSync(dirPath: string): RuntimeDirEntry[]
readFile(filePath: string, encoding?: string): Promise<string>
readFileSync(filePath: string, encoding?: string): string
realpathSync(path: string): string
writeFile(filePath: string, fileText: string): Promise<void>
writeFileSync(filePath: string, fileText: string): void
import InMemoryFileSystemHost
import { InMemoryFileSystemHost } from "https://dotland.deno.dev/x/ts_morph@17.0.0/ts_morph.js";