ascii-side-of-the-moon 1.0.3 → 1.0.5

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 CHANGED
@@ -2,7 +2,21 @@
2
2
 
3
3
  `ascii-side-of-the-moon` is a small library that prints an ascii representation of the moon on a given date.
4
4
 
5
- For a given date it returns a 27 row by 58 column string.
5
+ For a given date it returns a 29 row by 60 column string.
6
+
7
+ ![moon](https://github.com/user-attachments/assets/0baf4510-12cb-49db-a816-785334ba52ef)
8
+
9
+ ## CLI Usage
10
+
11
+ You can use this package directly from the command line:
12
+
13
+ ```bash
14
+ # Show moon for current date
15
+ npx ascii-side-of-the-moon
16
+
17
+ # Show moon for a specific date
18
+ npx ascii-side-of-the-moon 2025-01-01
19
+ ```
6
20
 
7
21
  ## Example
8
22
 
@@ -35,3 +49,11 @@ pnpm run render:demo_animate 2025-01-01 2025-12-30
35
49
 
36
50
  ## Char aspect ratio.
37
51
  This package assumes a character ratio of 10/22.
52
+
53
+
54
+ ## Preview image
55
+ The preview svg was generated with these commands:
56
+ ```sh
57
+ asciinema rec -c "pnpm run render:demo_animate 2025-07-25 2025-08-23" moon.cast
58
+ cat moon.cast | npx svg-term-cli --out=moon.svg
59
+ ```