Skip to content

Instantly share code, notes, and snippets.

@pgburt pgburt/index.js
Last active Jan 8, 2016

Embed
What would you like to do?
#!/usr/bin/env node
var validate = require('data-validate');
var valid = validate.len(8)
.isEmail()
.notContains('+')
('pam@example.com')
var invalid = validate.len(8)
.isEmail()
.notContains('+')
('pam+alias@example.com')
console.log(
"valid is: ", valid,
"\ninvalid is: ", invalid
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.