UNPKG

emerald-templates

Version:

Intelligent Template Generation & Project Management

14 lines (11 loc) 222 B
const { accessSync, constants } = require('fs') function exists(filepath) { let flag = true try { accessSync(filepath, constants.F_OK) } catch (e) { flag = false } return flag } module.exports = exists