/TreeSanitizer

A simple JavaScript class which can parse a nested object tree(like JSON), sanitize values based on rules depending on keys and return the same structure.

Primary LanguageJavaScriptBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

TreeSanitizer

A simple lightweight JavaScript class which can parse a nested object tree like JSON. It ignores keys (or not) and/or sanitizes values based on rules depending on keys then returns a rebuilt object with the same structure.

Examples of how to extend the options, ignore and filter methods are in tests/core.js.