The catalogue

Utility functions you copy into your project, each verified against a public, executable contract. Not a dependency: the source lands in your repository and it is yours.

npx toopo add domain/function

Every contract carries its own command, on its own page. This is the shape of all of them.

A contract is the whole behavioural specification of one function — its signature, the invariants that must hold for every input, and every edge case named, settled and argued for. Anything that satisfies it can replace anything else that does, which is what makes an implementation a detail. The contract is what this project publishes; the code is what it hands you.

5 contracts in 4 domains

number

date

array

string