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

@fedify/fedify@1.3.0-dev.492+450a6939
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
4 months ago (1.3.0-dev.492+450a6939)
method PropertyValue.prototype.toJsonLd
PropertyValue.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 { PropertyValue } from "@fedify/fedify";

---- OR ----

Import directly with a jsr specifier

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

Add Package

npx jsr add @fedify/fedify

Import symbol

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

Add Package

yarn dlx jsr add @fedify/fedify

Import symbol

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

Add Package

pnpm dlx jsr add @fedify/fedify

Import symbol

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

Add Package

bunx jsr add @fedify/fedify

Import symbol

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