UNPKG

tiny-essentials

Version:

Collection of small, essential scripts designed to be used across various projects. These simple utilities are crafted for speed, ease of use, and versatility.

36 lines (31 loc) 1.58 kB
'use strict'; var normalFuncs = require('./normalFuncs.cjs'); var asyncFuncs = require('./asyncFuncs.cjs'); exports.backupFile = normalFuncs.backupFile; exports.clearDirectory = normalFuncs.clearDirectory; exports.dirExists = normalFuncs.dirExists; exports.dirSize = normalFuncs.dirSize; exports.ensureCopyFile = normalFuncs.ensureCopyFile; exports.ensureDirectory = normalFuncs.ensureDirectory; exports.fileExists = normalFuncs.fileExists; exports.fileSize = normalFuncs.fileSize; exports.getLatestBackupPath = normalFuncs.getLatestBackupPath; exports.isDirEmpty = normalFuncs.isDirEmpty; exports.listDirs = normalFuncs.listDirs; exports.listFiles = normalFuncs.listFiles; exports.readJsonFile = normalFuncs.readJsonFile; exports.renameFileAddPrefixSuffix = normalFuncs.renameFileAddPrefixSuffix; exports.renameFileBatch = normalFuncs.renameFileBatch; exports.renameFileNormalizeCase = normalFuncs.renameFileNormalizeCase; exports.renameFilePadNumbers = normalFuncs.renameFilePadNumbers; exports.renameFileRegex = normalFuncs.renameFileRegex; exports.restoreLatestBackup = normalFuncs.restoreLatestBackup; exports.tryDeleteFile = normalFuncs.tryDeleteFile; exports.writeJsonFile = normalFuncs.writeJsonFile; exports.writeTextFile = normalFuncs.writeTextFile; exports.clearDirectoryAsync = asyncFuncs.clearDirectoryAsync; exports.dirSizeAsync = asyncFuncs.dirSizeAsync; exports.fileSizeAsync = asyncFuncs.fileSizeAsync; exports.isDirEmptyAsync = asyncFuncs.isDirEmptyAsync; exports.listDirsAsync = asyncFuncs.listDirsAsync; exports.listFilesAsync = asyncFuncs.listFilesAsync;