schema-inspector(GitHub: Atinux/schema-inspector, License: MIT) is a powerful tool to sanitize and validate JS objects written by Sébastien Chopin. It’s disigned to work both client-side and server-side and to be scalable with allowing asynchronous and synchronous calls. There’s support for object validation and sanitazation with a very simple schema definition.

In the end, you have a strong contract between your APIs, consumer and your tests with just a few lines of code. I’m loving this! The documentation site is very good and I strongly recommend checking it out.