Runtime type checking for Javascript.
npm install runtype
Utilities for runtime type checking.
* construct: check that a value conforms to a schema * enforce: wrap a function's arguments and callback value in a schema check