Skip to main content
Home
This release is 1 version behind 1.5.1 — the latest version of @fedify/fedify. Jump to latest

@fedify/fedify@1.5.0-dev.640+5886ae8b
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
94%
Published
3 months ago (1.5.0-dev.640+5886ae8b)
method Undo.prototype.toJsonLd
Undo.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.

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@fedify/fedify

Import symbol

import { Undo } from "@fedify/fedify";
or

Import directly with a jsr specifier

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

Add Package

pnpm i jsr:@fedify/fedify
or (using pnpm 10.8 or older)
pnpm dlx jsr add @fedify/fedify

Import symbol

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

Add Package

yarn add jsr:@fedify/fedify
or (using Yarn 4.8 or older)
yarn dlx jsr add @fedify/fedify

Import symbol

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

Add Package

npx jsr add @fedify/fedify

Import symbol

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

Add Package

bunx jsr add @fedify/fedify

Import symbol

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