app-overview
Version:
> A visualization of the application structure. See, read & learn the code, effortlessly.
21 lines (18 loc) • 470 B
JavaScript
const fs = require("fs-extra");
const path = require("path");
const chalk = require("chalk");
const readline = require("readline");
// const folderPath = path.join(__dirname, '../visual');
module.exports = {
remDir: async () => {
await fs.emptyDir(`./visual`, err => {
if (err) throw err;
});
},
remFile: async () => {
await fs.unlink(`${folderPath}/user.config.js`, err => {
if (err) throw err;
});
await remove.remDir();
}
};