Secure
Built for the path where untrusted input becomes a trusted identity.
- Bounded input parsing — ReDoS-safe
- Strict, canonical validation (strict rejects placeholders)
- Generic errors — never echoes the RUT
- Crypto-backed generate()
Features
rut.ts is a focused, hardened toolkit for Chilean RUT values — secure by default, fully typed, and fast everywhere your code runs.
Functions
9
Tests
394
Dependencies
0
Bundle size
~1.4 KB
Built for the path where untrusted input becomes a trusted identity.
Nine focused functions that compose into anything.
Lightweight and quick by design.
Runs everywhere your JS/TS runs.
Every function is exercised against valid, invalid, and adversarial input — happy paths, edge cases, and safe mode included.
Test cases
394
Test suites
12
Pass rate
100%
Liking rut.ts?
Star on GitHubMIT License © 2026 Arrow Software