Simple object validator for NodeJS