-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathconstants.js
More file actions
30 lines (30 loc) · 1016 Bytes
/
constants.js
File metadata and controls
30 lines (30 loc) · 1016 Bytes
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
'use strict';
module.exports = Object.freeze({
//--- Global
GENERAL_PATH_FULL : (name, date) => `${__dirname}/${name}/${date}/`,
GENERAL_PATH : name => `${__dirname}/${name}/`,
//--- Error Handlers
ERROR_CONSTRUCTOR : `Unexpected error, the constructor expected an object as a parameter`,
ERROR_INVALID_DATE: date => `Error with Date, this invalid date or unknown format. ${date}`,
//--- Utility
COLOR : {
black : '\x1b[0;30m',
dkgray : '\x1b[1;30m',
brick : '\x1b[0;31m',
red : '\x1b[1;31m',
dkred : '\x1b[31m',
green : '\x1b[0;32m',
lime : '\x1b[1;32m',
brown : '\x1b[0;33m',
yellow : '\x1b[1;33m',
navy : '\x1b[0;34m',
blue : '\x1b[1;34m',
violet : '\x1b[0;35m',
magenta: '\x1b[1;35m',
teal : '\x1b[0;36m',
cyan : '\x1b[1;36m',
ltgray : '\x1b[0;37m',
white : '\x1b[1;37m',
reset : '\x1b[0m'
}
});