arktype
2.2.9 · 20 Oct 2026MIT3.4M / weekRepositoryHomepagenpmAtom feed
Your version
2.2.9 is the newest release of 2.x.
Release note
The section about arktype of a note shared by several packages.
The |> operator pipes output to another Type parsed from a definition.
It is now string-embeddable:
const TrimToNonEmpty = type("string.trim |> string > 0")
const Equivalent = type("string.trim").to("string > 0")