Works with
This package works with Node.js, Deno, Bun
License
MIT
•
Downloads9,010/wk
•
Published3 days ago (2.3.6)
An ActivityPub/fediverse server framework
interface GetNodeInfoOptions
Since 1.2.0
Properties
Whether to directly fetch the NodeInfo document from the given URL.
Otherwise, the NodeInfo document will be fetched from the .well-known
location of the given URL.
Turned off by default.
How strictly to parse the NodeInfo document.
"strict": Parse the NodeInfo document strictly. If the document is invalid,undefinedis returned. This is the default."best-effort": Try to parse the NodeInfo document even if it is invalid."none": Do not parse the NodeInfo document. The function will return the raw JSON value.
The options for making User-Agent header.
If a string is given, it is used as the User-Agent header value.
If an object is given, it is passed to getUserAgent to generate
the User-Agent header value.