@arpinum/defender
v1.0.7
Published
Assertions to do some runtime type checking
Maintainers
Readme
@arpinum/defender 
Every absurdity has a champion to defend it.
Oliver Goldsmith
@arpinum/defender is a collection of assertions to do some runtime type checking.
Installation
npm install @arpinum/defender --saveExamples
Assertion throwing exception when not satisfied:
import { assert } from "@arpinum/defender";
assert("hello").toBeANumber(); // throws: value must be a numberSimple validation returning a boolean:
import { is } from "@arpinum/defender";
is("hello").aNumber(); // falseMore examples in examples.
