Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/smx/src/modules/infra/file-handler.ts>IFileHandler

Manage and sync scripts, configs and templates between computers
Latest
interface IFileHandler
import { type IFileHandler } from "https://deno.land/x/smx@v0.6.0/src/modules/infra/file-handler.ts";

Properties

readonly
path: string

Methods

readTextFile(): Promise<string>
readTextFile(defaultValue: string): Promise<string>
writeTextFile(content: string): Promise<boolean>
readJsonFile<T>(defaultValue: T): Promise<T>
writeJsonFile<T>(content: T): Promise<boolean>