-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcount-ascii.js
More file actions
31 lines (27 loc) · 1.71 KB
/
Copy pathcount-ascii.js
File metadata and controls
31 lines (27 loc) · 1.71 KB
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
#!/usr/bin/env node
// Count from user's screenshot
const lines = [
' ██╗███████╗███████╗██████╗ ',
' ██║██╔════╝██╔════╝██╔══██╗ ',
' ██║███████╗███████╗██║ ██║ ',
' ██ ██║╚════██║╚════██║██║ ██║ ',
' ╚█████╔╝███████║███████║██████╔╝ ',
' ╚════╝ ╚══════╝╚══════╝╚═════╝ ',
];
console.log('Current line lengths:\n');
lines.forEach((line, i) => {
console.log(`Row ${i + 3}: ${line.length} chars`);
});
// Measure the ASCII content itself
const asciiLines = [
' ██╗███████╗███████╗██████╗ ',
' ██║██╔════╝██╔════╝██╔══██╗',
' ██║███████╗███████╗██║ ██║',
'██ ██║╚════██║╚════██║██║ ██║',
'╚█████╔╝███████║███████║██████╔╝',
' ╚════╝ ╚══════╝╚══════╝╚═════╝ ',
];
console.log('\nASCII content lengths:\n');
asciiLines.forEach((line, i) => {
console.log(`Line ${i + 1}: "${line}" = ${line.length} chars`);
});