henry-angel
v1.0.3
Published
henry-angel
Readme
henry-angel
Browser support
This has no dependencies and should work in browsers, though you'll have noisier stack traces.
Why this exists
I wanted a very simple argument validator. It needed to do two things:
Be more concise and easier to use than assertions
Not encourage an infinite bikeshed of DSLs
This is why types are specified by a single character and there's no such thing as an optional argument.
This is not intended to validate user data. This is specifically about asserting the interface of your functions.
If you need greater validation, I encourage you to write them by hand or look elsewhere.
