How sindresorhus/is-absolute-url works
This is a small JavaScript utility that answers whether a string is an absolute URL. A caller invokes the exported checker, which rejects non-strings, Windows paths, and strings without a URL scheme; by default it accepts only HTTP(S), while httpOnly: false permits other schemes. The declaration file describes the public API. The graph is limited to the runtime and its type contract; no broader product subsystems are documented.
Main entry points: index.js URL checker · index.d.ts Type contract
Components 3
Other components
- Calling code
- URL checker
index.js - Type contract
index.d.ts
Connections 3
- Calling code → URL checker: invokes
readme.md - URL checker → Calling code: returns boolean
readme.md - Type contract → URL checker: declares API
index.d.ts