Skip to main content
Module

std/node/fs.ts>exists

Deno standard library
Go to Latest
function exists
Re-export
import { exists } from "https://deno.land/std@0.158.0/node/fs.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: ExistsCallback