UNPKG

beam-cli

Version:

A beautifully simple CLI for running Lighthouse audits on a statically generated (SSG) website

12 lines (11 loc) 282 B
import fs from 'node:fs'; /** * Test whether a file exists * @param {string} filePath - Path to File, should include directory and extension */ export const ensureFileExistence = (filePath) => { if (fs.existsSync(filePath)) { return true; } return false; };