@contextjs/system
Version:
ContextJS - System
24 lines (22 loc) • 886 B
JavaScript
import { Console } from "./console.js";
export class VersionService {
static version = "25.0.0-beta.3";
static ascii = `
____ _ _ _ ____
/ ___|___ _ __ | |_ _____ _| |_ | / ___|
| | / _ \\| '_ \\| __/ _ \\ \\/ / __| _ | \\___ \\
| |__| (_) | | | | || __/> <| |_ | |_| |___) |
\\____\\___/|_| |_|\\__\\___/_/\\_\\\\__| \\___/|____/
________________________________________________
`;
static get() {
return this.version;
}
static display() {
Console.writeLineFormatted({ format: 'yellow', text: this.ascii });
Console.writeLine(`ContextJS: ${this.version}`);
Console.writeLine(`Node: ${process.version}`);
Console.writeLine(`OS: ${process.platform} ${process.arch}`);
Console.writeLine('\n');
}
}