UNPKG

express-schema-generator

Version:

This Package Create Express+Mongoose Schema BoilerPlate

16 lines (13 loc) 305 B
const fs = require("fs"); projectExist = (path) => { try { if (fs.existsSync(`./${path}`)) { //file exists console.log(" Sorry Same Name File Already Exist, Try Another Name"); shell.exit(); } } catch (err) { console.error("err"); } }; module.exports = projectExist;