UNPKG

elliotisms

Version:

reusable atomic functions for the dumb shit i reuse all the time. only about half are jokes.

14 lines (11 loc) 202 B
import fs from 'fs/promises'; const exists = async (path) => { try { await fs.access(path); return true; } catch (e) { return false; } } export default exists;