teamtrail 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/index.js +18 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<img src="https://raw.githubusercontent.com/teamtrailhq/teamtrail/main/brand/teamtrail-banner.gif" alt="Scout, the voice of Teamtrail, next to the Teamtrail
|
|
1
|
+
<img src="https://raw.githubusercontent.com/teamtrailhq/teamtrail/main/brand/teamtrail-banner.gif?v=5" alt="Scout, the voice of Teamtrail, next to the name Teamtrail and a trail through the mountains." width="100%" />
|
|
2
2
|
|
|
3
3
|
# Teamtrail
|
|
4
4
|
|
package/index.js
CHANGED
|
@@ -1,4 +1,22 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
const WORDMARK = [
|
|
3
|
+
'████████╗███████╗ █████╗ ███╗ ███╗████████╗██████╗ █████╗ ██╗██╗ ',
|
|
4
|
+
'╚══██╔══╝██╔════╝██╔══██╗████╗ ████║╚══██╔══╝██╔══██╗██╔══██╗██║██║ ',
|
|
5
|
+
' ██║ █████╗ ███████║██╔████╔██║ ██║ ██████╔╝███████║██║██║ ',
|
|
6
|
+
' ██║ ██╔══╝ ██╔══██║██║╚██╔╝██║ ██║ ██╔══██╗██╔══██║██║██║ ',
|
|
7
|
+
' ██║ ███████╗██║ ██║██║ ╚═╝ ██║ ██║ ██║ ██║██║ ██║██║███████╗',
|
|
8
|
+
' ╚═╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚══════╝',
|
|
9
|
+
];
|
|
10
|
+
const out = process.stdout;
|
|
11
|
+
const color = !('NO_COLOR' in process.env);
|
|
12
|
+
const moss = color ? '\x1b[38;2;143;191;132m' : '';
|
|
13
|
+
const reset = color ? '\x1b[0m' : '';
|
|
14
|
+
|
|
15
|
+
// Same as the real CLI's greeting: only for people, in a terminal wide enough for it.
|
|
16
|
+
if (out.isTTY && (out.columns ?? 80) >= 76) {
|
|
17
|
+
console.log(`\n${WORDMARK.map((row) => ` ${moss}${row}${reset}`.trimEnd()).join('\n')}`);
|
|
18
|
+
}
|
|
19
|
+
|
|
2
20
|
console.log(`
|
|
3
21
|
Teamtrail isn't released yet.
|
|
4
22
|
|
package/package.json
CHANGED