← All procedures

quantity.kindOf

No description.

CLI
Package
@procedures/quantity · README
Path
["quantity","kindOf"]
CLI
mark quantity kindOf --spelling <string>
As data
{"$proc":["quantity","kindOf"],"input":{}}

Use it

In TypeScript

import { Client, LocalTransport, PROCEDURE_REGISTRY } from "@procedures/client";
import "@procedures/quantity/register"; // registers its procedures

const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["quantity","kindOf"], { spelling: "<spelling>" });
console.log(JSON.stringify(result));

From the command line

$ mark quantity kindOf --spelling <string>

As data, in a program

{
  "$proc": ["quantity", "kindOf"],
  "input": { "spelling": "<spelling>" }
}

Input

FieldTypeRequiredDefaultDescription
spellingstringyes

Output

The schema does not list fields ("area" | "charge" | "count" | "current" | "data" | "data-rate" | "derived" | "energy" | "energy-price" | "frequency" | "length" | "level" | "mass" | "money" | "money-rate" | "power" | "ratio" | "resistance" | "specific-power" | "specific-volume-rate" | "speed" | "temperature" | "time" | "transfer-rate" | "voltage" | "volume").

JSON Schemas
{
  "input": {
    "type": "object",
    "properties": {
      "spelling": {
        "type": "string"
      }
    },
    "required": [
      "spelling"
    ],
    "additionalProperties": false
  },
  "output": {
    "type": "string",
    "enum": [
      "area",
      "charge",
      "count",
      "current",
      "data",
      "data-rate",
      "derived",
      "energy",
      "energy-price",
      "frequency",
      "length",
      "level",
      "mass",
      "money",
      "money-rate",
      "power",
      "ratio",
      "resistance",
      "specific-power",
      "specific-volume-rate",
      "speed",
      "temperature",
      "time",
      "transfer-rate",
      "voltage",
      "volume"
    ]
  }
}