Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ts_morph/common/ts_morph_common.js>RealFileSystemHost

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
class RealFileSystemHost
import { RealFileSystemHost } from "https://deno.land/x/ts_morph@18.0.0/common/ts_morph_common.js";

Methods

copy(srcPath, destPath)
copySync(srcPath, destPath)
delete(path)
fileExists(filePath)
fileExistsSync(filePath)
glob(patterns)
globSync(patterns)
mkdir(dirPath)
mkdirSync(dirPath)
move(srcPath, destPath)
moveSync(srcPath, destPath)
readDirSync(dirPath)
readFile(filePath, encoding?)
readFileSync(filePath, encoding?)
writeFile(filePath, fileText)
writeFileSync(filePath, fileText)