JSR

Built and signed on GitHub Actions

Works with

This package works with Cloudflare Workers, Node.js, Deno, Bun

This package works with Cloudflare Workers

This package works with Node.js

This package works with Deno

This package works with Bun

JSR Score100%

License

MIT

Downloads198/wk

Published5 days ago (2.3.6)

Vocabularies library for Fedify

A quantity with a unit of measure.

Constructors

Constructs a new instance of Measure with the given values.

Parameters

values: { id?: URL | null; unit?: string | null; numericalValue?: Decimal | null; }

View code

The values to initialize the instance with.

The options to use for initialization.

Static Properties

The type URI of Measure: http://www.ontology-of-units-of-measure.org/resource/om-2/Measure.

Static Methods

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

Properties

The amount of the resource. If not specified, arbitrary amounts can be used when responding to the proposal.

The name of the unit, according to the Ontology of units of Measure classification. The recommended unit for countable items is "one".

Methods

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

Converts this object to a JSON-LD structure.

Read the original on jsr.io ↗