Functional Weave
Code in TypeScript

Organisations / anterra

Anterra

1 member

Money, tax and invoicing capabilities for UK and Irish business software.

Published functions 200

math.exp
e to the power x from + - * / only, so TypeScript, Python and Rust return the same double for the same input.
auth.jwt
Sign, verify and decode HS256 JSON Web Tokens (RFC 7519): signature, algorithm and exp/nbf/iat checked with leeway.
math.pow
base to the power exponent from + - * / only, exact by squaring for whole exponents, identical in every language.
react.form.button React ^19 · TypeScript only
A form button in primary, secondary or warning style that stays focusable while loading (GOV.UK button).
charts.axis
Axis geometry as data: tick positions, tick marks, label anchors and gridlines for number, time and category axes.
charts.color
Hex colours to RGB and back, and sRGB channels to linear light and back, identically in every language.
charts.extent
The minimum and maximum of a series as [min, max], skipping gaps (null), or null when there is no value.
charts.scale
Map data values onto screen positions and back: linear, log, time, band and point scales, and nice domains.
charts.shape
SVG path strings for lines, areas, steps, monotone curves, bars, arcs and pie slices, identical in every language.
encoding.utf8
Text to UTF-8 bytes and strictly back (RFC 3629), so hashing and signing see the same bytes in every language.