Skip to main content
This release is 3 versions behind 1.3.3 — the latest version of @fedify/fedify. Jump to latest

Built and signed on GitHub Actions

An ActivityPub/fediverse server framework

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 Score
100%
Published
2 months ago (1.3.0)
interface GetNodeInfoOptions

Options for getNodeInfo function.

Properties

optional
direct: boolean

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"

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.

Add Package

deno add jsr:@fedify/fedify

Import symbol

import { type GetNodeInfoOptions } from "@fedify/fedify";

---- OR ----

Import directly with a jsr specifier

import { type GetNodeInfoOptions } from "jsr:@fedify/fedify";

Add Package

npx jsr add @fedify/fedify

Import symbol

import { type GetNodeInfoOptions } from "@fedify/fedify";

Add Package

yarn dlx jsr add @fedify/fedify

Import symbol

import { type GetNodeInfoOptions } from "@fedify/fedify";

Add Package

pnpm dlx jsr add @fedify/fedify

Import symbol

import { type GetNodeInfoOptions } from "@fedify/fedify";

Add Package

bunx jsr add @fedify/fedify

Import symbol

import { type GetNodeInfoOptions } from "@fedify/fedify";