UNPKG

zents-cli

Version:

ZenTS is a Node.js & TypeScript MVC-Framework for building rich web applications, released as free and open-source software under the MIT License. It is designed for building web applications with modern tools and design patterns.

9 lines (8 loc) 257 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isDirEmpty = void 0; const fs_1 = require("fs"); async function isDirEmpty(dir) { return !(await fs_1.promises.readdir(dir)).length; } exports.isDirEmpty = isDirEmpty;