Skip to content

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.

License

Notifications You must be signed in to change notification settings

rgk/TreeSanitizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published