const { validate } = require('indicative')
const rules = {
email: 'required|email|unique:users',
password: 'required|min:6|max:30'
}
const data = {
email: 'foo@bar.com',
password: 'weak'
}
validate(data, rules)
.then(() => {
})
.catch((errors) => {
})