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

x/readme_manager/utils.ts>checkExists

helps manage and harmonise READMEs in many repositories with template files
Latest
variable checkExists
import { checkExists } from "https://deno.land/x/readme_manager@v3.0.0/utils.ts";

Check if a given path exists on the filesystem. Returns a boolean or an error if something goes terribly wrong.

import { checkExists } from "./utils.ts"
const exists = await checkExists("/some/path", (errorMsg: string, error?: Error) => {})

type

(path: string, error: (message: string, error?: Error) => void) => unknown