Skip to main content
This release is 9 versions behind 1.3.0 — 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
a month ago (1.2.0)
method Accept.prototype.toJsonLd
Accept.prototype.toJsonLd(options?: { format?: "compact" | "expand"; contextLoader?: DocumentLoader; context?:
string
| Record<string, string>
| (string | Record<string, string>)[]
; }
): Promise<unknown>

Converts this object to a JSON-LD structure.

Parameters

optional
options: { format?: "compact" | "expand"; contextLoader?: DocumentLoader; context?:
string
| Record<string, string>
| (string | Record<string, string>)[]
; }

The options to use.

  • format: The format of the output: compact or expand.
  • contextLoader: The loader for remote JSON-LD contexts.
  • context: The JSON-LD context to use. Not applicable when format is set to 'expand'.

Return Type

Promise<unknown>

The JSON-LD representation of this object.

Add Package

deno add jsr:@fedify/fedify

Import symbol

import { Accept } from "@fedify/fedify";

---- OR ----

Import directly with a jsr specifier

import { Accept } from "jsr:@fedify/fedify";

Add Package

npx jsr add @fedify/fedify

Import symbol

import { Accept } from "@fedify/fedify";

Add Package

yarn dlx jsr add @fedify/fedify

Import symbol

import { Accept } from "@fedify/fedify";

Add Package

pnpm dlx jsr add @fedify/fedify

Import symbol

import { Accept } from "@fedify/fedify";

Add Package

bunx jsr add @fedify/fedify

Import symbol

import { Accept } from "@fedify/fedify";