speco

Humble specs for JS data

Usage no npm install needed!

<script type="module">
  import speco from 'https://cdn.skypack.dev/speco';
</script>

README

speco

Humble specs for JS data

Documentation

Specs for primitive values

Specs for arrays

Specs for objects

Specs using predicates

Specs for special values: ANY, NULL and mayBe

Composing specs with not, and and or