-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSvCoreLib.js
92 lines (83 loc) · 4.55 KB
/
SvCoreLib.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
// SvCoreLib by Sv443 - licensed under the MIT license: https://sv443.net/LICENSE
// For more information, please read the `README.md` file or go to https://github.com/Sv443-Network/SvCoreLib#readme
module.exports = {
//#SECTION functions
isEmpty: require("./src/functions/isEmpty"),
isArrayEmpty: require("./src/functions/isArrayEmpty"),
isClass: require("./src/functions/isClass"),
error: require("./src/functions/error"),
allEqual: require("./src/functions/allEqual"),
allOfType: require("./src/functions/allOfType"),
allInstanceOf: require("./src/functions/allInstanceOf"),
reserialize: require("./src/functions/reserialize"),
readableArray: require("./src/functions/readableArray"),
mapRange: require("./src/functions/mapRange"),
unused: require("./src/functions/unused"),
replaceAt: require("./src/functions/replaceAt"),
byteLength: require("./src/functions/byteLength"),
randRange: require("./src/functions/randRange"),
clamp: require("./src/functions/clamp"),
randomizeArray: require("./src/functions/randomizeArray"),
randomItem: require("./src/functions/randomItem"),
randomItemIndex: require("./src/functions/randomItemIndex"),
takeRandomItem: require("./src/functions/takeRandomItem"),
removeDuplicates: require("./src/functions/removeDuplicates"),
halves: require("./src/functions/halves"),
insertValues: require("./src/functions/insertValues"),
formatDuration: require("./src/functions/formatDuration"),
parseDuration: require("./src/functions/parseDuration"),
splitIntoParts: require("./src/functions/splitIntoParts"),
splitIntoPartsOfLength: require("./src/functions/splitIntoPartsOfLength"),
// namespaces
seededRNG: {
randomSeed: require("./src/functions/seededRNG/randomSeed"),
generateNumbers: require("./src/functions/seededRNG/generateNumbers"),
validateSeed: require("./src/functions/seededRNG/validateSeed"),
},
uuid: {
hexadecimal: require("./src/functions/uuid/hexadecimal"),
decimal: require("./src/functions/uuid/decimal"),
alphanumerical: require("./src/functions/uuid/alphanumerical"),
binary: require("./src/functions/uuid/binary"),
custom: require("./src/functions/uuid/custom"),
},
http: {
pipeFile: require("./src/functions/http/pipeFile"),
pipeString: require("./src/functions/http/pipeString"),
getClientEncoding: require("./src/functions/http/getClientEncoding"),
ping: require("./src/functions/http/ping"),
},
files: {
readdirRecursive: require("./src/functions/files/readdirRecursive"),
readdirRecursiveSync: require("./src/functions/files/readdirRecursiveSync"),
logger: require("./src/functions/files/logger"),
downloadFile: require("./src/functions/files/downloadFile"),
ensureDirs: require("./src/functions/files/ensureDirs"),
ensureDirsSync: require("./src/functions/files/ensureDirsSync"),
exists: require("./src/functions/files/exists"),
existsSync: require("./src/functions/files/existsSync"),
},
sql: {
sendQuery: require("./src/functions/sql/sendQuery"),
},
system: {
usedHeap: require("./src/functions/system/usedHeap"),
inDebugger: require("./src/functions/system/inDebugger"),
softShutdown: require("./src/functions/system/softShutdown"),
noShutdown: require("./src/functions/system/noShutdown"),
yesShutdown: require("./src/functions/system/yesShutdown"),
setWindowTitle: require("./src/functions/system/setWindowTitle"),
pause: require("./src/functions/system/pause"),
},
//#SECTION classes
ProgressBar: require("./src/classes/ProgressBar"),
MenuPrompt: require("./src/classes/MenuPrompt"),
FolderDaemon: require("./src/classes/FolderDaemon"),
SelectionMenu: require("./src/classes/SelectionMenu"),
StatePromise: require("./src/classes/StatePromise"),
// namespaced classes
Errors: require("./src/classes/Errors"),
//#SECTION objects
info: require("./src/objects/info"),
colors: require("./src/objects/colors"),
};