1.0.3 • Published 8 years ago

checkshape v1.0.3

Weekly downloads
3
License
ISC
Repository
github
Last release
8 years ago

checkshape

const shape = require('checkshape');
const s = shape({
  user_id: (userId) => userExists(userId),
  name: (name, {user_id}) => findUserByName(name).then((user) => user.id === user_id)
})

s.check(data).then(({result, errors}) => {})
1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.9.0

8 years ago