0.9.0 • Published 10 years ago

checkshape v0.9.0

Weekly downloads
3
License
ISC
Repository
github
Last release
10 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

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.9.0

10 years ago