● v3.4.0 β€” Now with Safe Mode

rut.ts

Handle Chilean RUT values with ease

Get Started β†’View on GitHub
import { validate, format } from 'rut.ts'

// Validate any RUT format
validate('12.345.678-5') // β†’ true

// Format with dots and hyphen
format('123456785') // β†’ '12.345.678-5'

// Incremental formatting
format('1234', { incremental: true })
// β†’ '1.234'
⚑
<1ms
execution time

Lightning Fast

πŸ“¦
~3KB
minified + gzipped

Ultra Lightweight

πŸ”§
166
test cases

9 Core Functions

πŸ›‘οΈ
100%
type coverage

Type Safe

Ready to get started?

npm install rut.ts
Read the Documentation β†’
MIT Β© 2026 rut.ts by Arrow Software