Skip to main content

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 week ago (1.3.0)
class Hashtag
extends Link

A specialized Link that represents an #hashtag.

See also https://swicg.github.io/miscellany/#Hashtag.

Constructors

new
Hashtag(
values: { id?: URL | null; href?: URL | null; rel?: string | null; rels?: (string)[]; mediaType?: string | null; name?: ; names?: ((string | LanguageString))[]; language?: LanguageTag | null; height?: number | null; width?: number | null; previews?: ()[]; },
unnamed 1?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; tracerProvider?: TracerProvider; },
)

Constructs a new instance of Hashtag with the given values.

Methods

[Symbol.for("nodejs.util.inspect.custom")](
_depth: number,
options: unknown,
inspect: (
value: unknown,
options: unknown,
) => string
,
): string
protected
_getCustomInspectProxy(): Record<string, unknown>
clone(
values?: { id?: URL | null; href?: URL | null; rel?: string | null; rels?: (string)[]; mediaType?: string | null; name?: ; names?: ((string | LanguageString))[]; language?: LanguageTag | null; height?: number | null; width?: number | null; previews?: ()[]; },
options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; },
): Hashtag

Clones this instance, optionally updating it with the given values.

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.

Static Properties

readonly
typeId: URL

The type URI of Hashtag: https://www.w3.org/ns/activitystreams#Hashtag.

Static Methods

protected
__fromJsonLd__Hashtag__(
json: unknown,
span: Span,
options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; tracerProvider?: TracerProvider; },
): Promise<Hashtag>
fromJsonLd(
json: unknown,
options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; tracerProvider?: TracerProvider; },
): Promise<Hashtag>

Converts a JSON-LD structure to an object of this type.

Add Package

deno add jsr:@fedify/fedify

Import symbol

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

---- OR ----

Import directly with a jsr specifier

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

Add Package

npx jsr add @fedify/fedify

Import symbol

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

Add Package

yarn dlx jsr add @fedify/fedify

Import symbol

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

Add Package

pnpm dlx jsr add @fedify/fedify

Import symbol

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

Add Package

bunx jsr add @fedify/fedify

Import symbol

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