How sindresorhus/is-up works
is-up is a small Node.js library that checks a website’s status through isitup.org. The caller supplies a URL; the exported function extracts and encodes its hostname, requests the API’s JSON response via got, and returns whether the domain is up (or throws for an invalid domain). The graph reflects the single sampled runtime module; it does not imply additional stages beyond those shown in the source.
Main entry points: index.js Status check
Components 4
Other components
- Library caller
- Status check
index.js - got client
- isitup.org API
Connections 6
- Library caller → Status check: calls
readme.md - Status check → got client: requests JSON
index.js - got client → isitup.org API: fetches status
- isitup.org API → got client: returns JSON
- got client → Status check: returns JSON
index.js - Status check → Library caller: returns status
index.js