Skip to content

Instantly share code, notes, and snippets.

View Inplex-sys's full-sized avatar
🦉
What an owl !

Inplex-sys Inplex-sys

🦉
What an owl !
View GitHub Profile
class ArgumentManager {
constructor() {
this.arguments = {};
}
parseArguments() {
const args = process.argv.slice(2);
for (let i = 0; i < args.length; i++) {
const arg = args[i];
if (arg.startsWith('--')) {
import chalk from 'chalk';
class Logs {
static Info( message ) {
console.log(chalk.hex('#d6af42')(Utils.formatConsoleDate(new Date())) + chalk.cyan('[INFO] ') + message);
}
static Error( message ) {
console.log(chalk.hex('#d6af42')(Utils.formatConsoleDate(new Date())) + chalk.red('[ERROR] ') + message);
}