Polls HTTP/HTTPS resources and fires events when the response body changes. Version 0.0.3 is the latest (and only) release as of early 2013, with no updates since. Minimalist library using Node.js http/https modules, gzip decoding, and a custom compare function. Unlike general-purpose polling libraries, it is specifically scoped to monitoring HTTP content changes. No longer maintained; consider using newer alternatives or the built-in fetch with manual polling.
npm install changed-httpVerified import paths — ran on the pinned version, not inferred.
Creates a Resource polling http://example.com every 5 seconds, logs 'Resource changed!' when body changes. Demonstrates event-based monitoring.
Consider using modern alternatives like node-fetch with manual polling or chokidar for file changes.
Create a custom .d.ts file or use as any.
Ensure compare returns a boolean: true if changed, false otherwise.
Always pass a positive number.
npm install robinjmurphy/changed
Use const changed = require('changed-http'); then new changed.Resource(...)Use new changed.Resource(url, options)
Return true when content differs, false otherwise.
No dependency data recorded yet.