Module

std/node/fs.ts>existsSync

Deno standard library
Go to Latest
function existsSync
import { existsSync } from "https://dotland.deno.dev/std@0.145.0/node/fs.ts";

TODO: Also accept 'path' parameter as a Node polyfill Buffer or URL type once these are implemented. See https://github.com/denoland/deno/issues/3403

Parameters

path: string | URL

Returns

boolean
import existsSync
import { existsSync } from "https://dotland.deno.dev/std@0.145.0/node/fs.ts";