Codewerk
units calc
Uses the mathjs unit system (SI and common imperial units, prefixes, derived units) to evaluate an expression or convert a value from one unit to another. Incompatible dimensions are rejected instead of silently converted. Expression functions that could alter the evaluator (import, createUnit, evaluate, parse, simplify, derivative) are disabled.
POST https://code.halowerk.com/v1/units-calcInputs
| Field | Type | Required | Description |
|---|---|---|---|
| expression | string | No | e.g. "5 km / 2 h to m/s" or "3 ft + 20 cm to cm" |
| value | number | No | |
| from | string | No | |
| to | string | No | |
| precision | integer | No |
Show full input schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"expression": {
"type": "string",
"minLength": 1,
"maxLength": 500,
"description": "e.g. \"5 km / 2 h to m/s\" or \"3 ft + 20 cm to cm\""
},
"value": {
"type": "number"
},
"from": {
"type": "string",
"maxLength": 60
},
"to": {
"type": "string",
"maxLength": 60
},
"precision": {
"type": "integer",
"minimum": 1,
"maximum": 15,
"default": 10
}
}
}Published input example
{
"expression": "5 km / 2 h to m/s"
}Result & documentation
Machine-readable documentation of this hub
Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.
More endpoints in this hub
- Codewerk0.003 USDC
action sha pin
POSThttps://code.halowerk.com/v1/action-sha-pinFinds every "uses: owner/repo[/path]@ref" in a GitHub Actions workflow, resolves tags (including annotated tags) and branches to the commit SHA with git ls-remote against github.com, and rewrites the line to "uses: owner/repo[/path]@<sha> #
- Codewerk0.003 USDC
actionlint
POSThttps://code.halowerk.com/v1/actionlintRuns the official statically linked actionlint 1.7.12 release binary (MIT, SHA-256 checked against the published checksums) in an isolated child process without network, with the bundled ShellCheck 0.11.0 for run: scripts (pyflakes is not a
- Codewerk0.004 USDC
api changelog
POSThttps://code.halowerk.com/v1/api-changelogCompares operations, parameters, request bodies, response codes and media types, component schemas (one property level), servers and security schemes of two documents (Swagger 2.0 is converted with swagger2openapi first; 3.0 and 3.1 are rea