uptime-robot-v3-repl
v1.0.1
Published
Interactive Node REPL for exploring the Uptime Robot API via uptime-robot-v3.
Downloads
262
Maintainers
Readme
uptime-robot-v3-repl
Small interactive REPL for calling the Uptime Robot API v3 through the uptime-robot-v3 SDK.
Requirements
- Node.js 18+
- An Uptime Robot main API key in
UPTIMEROBOT_API_KEY
Usage
UPTIMEROBOT_API_KEY=your_key npx uptime-robot-v3-replOr install globally:
npm install -g uptime-robot-v3-repl
UPTIMEROBOT_API_KEY=your_key ur-replIn the REPL, the client is exposed as service (an UptimeRobotService). Examples:
await service.monitors.list();
await service.users.me();Help (local summaries + TypeDoc)
Summaries ship as JSON built from uptime-robot-v3 declaration/JSDoc (not by parsing .ts in the REPL). In this repo the generated file lives at src/generated/method-docs.json; npm run build copies it into dist/generated/method-docs.json for the runnable package. Regenerate after upgrading the SDK:
npm run generate:docsThis runs automatically before each npm run build (prebuild).
help()— each method shows a short local description (truncated); one footer line with your TypeDoc base URL.help("monitors.create")etc. — full paragraph from the same source, then the TypeDoc URL for signatures/examples.
Override the docs base with UPTIMEROBOT_DOCS_BASE if needed.
Develop against a local SDK checkout
If you are hacking uptime-robot-v3 next to this repo, point the dependency at the folder and reinstall:
"dependencies": {
"uptime-robot-v3": "file:../uptime-robot-v3"
}Then:
npm install
npm run build
UPTIMEROBOT_API_KEY=your_key npm start