Skip to content

Instantly share code, notes, and snippets.

View DRFR0ST's full-sized avatar
🏡
Not on vacation

Mike Eling DRFR0ST

🏡
Not on vacation
View GitHub Profile
@DRFR0ST
DRFR0ST / checkFileContentPeriodically.md
Last active January 2, 2025 13:16
A Bun/Node.js script that monitors a given URL for file content changes, notifying the user with console output when changes are detected.

️ File Change Monitor Script (Node.js & Bun)

This script keeps an eye on a file hosted online and alerts you whenever its content changes!

Features:

  • Cross-platform: Works on both Windows 🪟 and Linux/Mac systems!
  • No external dependencies: No need to install extra libraries
  • Robust error handling: Handles network issues and non-200 status codes
  • Clear notifications: Shows both old and new content for easy comparison