const { validate } = require( "bycontract" );
validate( 1, "number|string" );
<script src="dist/byContract.min.js"></script>
<script>
const { validate } = byContract;
validate( 1, "number|string" );
</script>
import { validate } from "bycontract";
validate( 1, "number|string" );