uptime-audit
v1.0.0
Published
CLI tool to check website uptime and response time
Maintainers
Readme
uptime-audit
A lightweight CLI tool for checking website uptime, HTTP status codes, and response times directly from the terminal.
Features
- Check availability of one or multiple URLs
- Display HTTP status codes and response times
- JSON output support for scripting and automation
- Continuous monitoring mode (
--watch)
Installation
Using npx (no installation required)
npx uptime-audit https://example.comGlobal installation
npm install -g uptime-auditUsage
Check a single URL
uptime-audit https://example.comCheck multiple URLs
uptime-audit https://example.com https://github.comJSON output
uptime-audit https://example.com --jsonWatch mode
Continuously monitor a URL at a fixed interval.
uptime-audit https://example.com --watchExample Output
https://example.com UP 200 120ms
https://invalid.com DOWN 500API (Programmatic Usage)
const checkSite = require("uptime-audit");
(async () => {
const result = await checkSite("https://example.com");
console.log(result);
})();Project Structure
.
├── index.js
├── cli.js
├── package.json
└── README.mdRequirements
- Node.js >= 16
Author
Astha Pal GitHub: https://github.com/Astha9670
License
MIT License
