JSR

Works with

This package works with Node.js, Deno, Bun

This package works with Node.js

This package works with Deno

This package works with Bun

JSR Score88%

License

MIT

Downloads9,010/wk

Published3 days ago (2.3.6)

An ActivityPub/fediverse server framework

interface GetNodeInfoOptions

Since 1.2.0

View code

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.

optional

parse: "strict" | "best-effort" | "none"

View code

How strictly to parse the NodeInfo document.

  • "strict": Parse the NodeInfo document strictly. If the document is invalid, undefined is 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.

Read the original on jsr.io ↗