shape

Isomorphic and Async object validation library.

npm install --save @krab/shape'

import Shape from '@krab/shape'

const Shape = require('@krab/shape/common')

shape is used to vaidate data in an async manner. Doesn't matter if your checks are all synchronous, shape will check them in an async manner. This is very useful for validating data against external data sources. Example below: