This commit ports the crypt library from the Core repository to the Enchantrix repository. It includes the following changes: - The project is now a Go module. - The `lthn` and `crypt` packages have been ported from the Core repository. - The PGP functionality has been commented out pending resolution of dependency issues. - The old Deno project has been moved to the `vault` directory. - The README has been updated to reflect the new project structure.
14 lines
208 B
TypeScript
14 lines
208 B
TypeScript
export class EnchantrixLog {
|
|
|
|
constructor(entry: string, level: number = 1) {
|
|
switch (level) {
|
|
case 0:
|
|
break;
|
|
case 1:
|
|
console.log(entry)
|
|
break
|
|
case 2:
|
|
console.warn(entry)
|
|
}
|
|
}
|
|
}
|