https://github.com/contigen/font-release-script
A script to notify of the latest release of Vercel's typeface, Geist, via email
https://github.com/contigen/font-release-script
Last synced: 2 months ago
JSON representation
A script to notify of the latest release of Vercel's typeface, Geist, via email
- Host: GitHub
- URL: https://github.com/contigen/font-release-script
- Owner: contigen
- Created: 2024-05-13T09:07:58.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-08T10:46:47.000Z (about 2 years ago)
- Last Synced: 2025-12-04T22:53:58.409Z (7 months ago)
- Language: TypeScript
- Homepage:
- Size: 15.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Font Release Script
This is an automated script that notifies me via email about a new release of Vercel's [Geist](https://github.com/vercel/geist-font), in relation to the package I maintain, [non.geist](https://github.com/contigen/non.geist).
As my package depends on Vercel's [Geist](https://github.com/vercel/geist-font) font files
## Workflow
It uses `node-mailer` to send me configured emails 4 times each day (12 AM, 6 AM, 12 PM, and 6 PM) with appropriate information depending whether a new release exists, and accordingly downloads the assets if available.
The script is initialiased by a cron using `node-cron` and runs indefinitely, restarts automatically on system reboot using `pm2`, essentially making it a startup service (on a Linux machine).
Any error and/or info (timestamped) are saved to individual files to keep track of updates.
## The Why
Folks use my package, I want them to have the latest version of the font files I depend on.
PS: Feedback, from an [issue](https://github.com/contigen/non.geist/issues/3), might have prompted me to do this.
### Runtime
[Bun](https://bun.sh) file operations' APIs are so declarative & pro good DX.
To install dependencies:
```bash
bun install
```
To run:
```bash
bun run index.ts
```
This project was created using `bun init` in bun v1.1.8. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.