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

std/node/_fs/_fs_exists.ts>exists

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function exists
import { exists } from "https://deno.land/std@0.76.0/node/_fs/_fs_exists.ts";

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

Parameters

path: string | URL
callback: ExitsCallback