Racoon JS

JSON →
library 1.6.0 ·javascript maintenance
verified Jun 4, 2026

A data validation and formatting library for JavaScript that supports both browser and Node.js. Version 1.6.0 includes chainable schema definitions for strings, numbers, booleans, objects, and arrays with support for required fields, defaults, min/max, regex patterns, custom error messages, and value formatting. It offers a try-catch validate method and a silent validate mode that returns error and value. The library is lightweight (~21 kB, 4.6 kB gzipped) and supports IE 11 and modern browsers. Release cadence is low (last update September 2020). Differentiators include flexible nested schema definitions, chainable methods without order restrictions, and easy custom error messages.