UNPKG

generator-confit

Version:

Yeoman generator for creating the development process, tools and a sample project for current-generation web applications

20 lines (17 loc) 276 B
const fs = require('fs'); /** * Check if the file exists * @param {string} fp File Path * @returns {boolean} result */ function fileExists(fp) { try { fs.accessSync(fp); return true; } catch (err) { return false; } } module.exports = { fileExists };