Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

std/fs/testdata/exists.ts

Deno standard library
Go to Latest
File
import { exists } from "../exists.ts";
exists(Deno.args[0]) .then(isExist => { Deno.stdout.write(new TextEncoder().encode(isExist ? 'exist' :'not exist')) }) .catch((err) => { Deno.stdout.write(new TextEncoder().encode(err.message)) })