-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
65 lines (63 loc) · 1.06 KB
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*
* @Author: HxB
* @Date: 2022-04-28 13:54:21
* @LastEditors: DoubleAm
* @LastEditTime: 2024-06-26 09:48:50
* @Description: 导出一些方法,或许后面可以用到。
* @FilePath: \js-xcmd\main.js
*/
const {
rmRf,
isDirExistResult,
isDirExist,
emptyDir,
copyDir,
copyFile,
deleteDir,
deleteFile,
addDir,
addFile,
renameDir,
renameFile,
getFileName,
getFileSize,
getFileExt,
getFileContent,
setFileContent,
getJSONFileObj,
getPath,
getFullPath,
getResolvePath,
getAllFilePath
} = require('./utils/files');
const { cmd } = require('./utils/cmd');
const { node2es6, sortJSON, mergeObj, versionUpgrade } = require('./utils/tools');
module.exports = {
rmRf,
isDirExistResult,
isDirExist,
emptyDir,
copyDir,
copyFile,
deleteDir,
deleteFile,
addDir,
addFile,
renameDir,
renameFile,
getFileName,
getFileSize,
getFileExt,
getFileContent,
setFileContent,
getJSONFileObj,
getPath,
getFullPath,
getResolvePath,
getAllFilePath,
cmd,
node2es6,
sortJSON,
mergeObj,
versionUpgrade
};