Skip to content

Instantly share code, notes, and snippets.

@pgburt
Last active January 8, 2016 21:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pgburt/9fa0dcfff523444c54bd to your computer and use it in GitHub Desktop.
Save pgburt/9fa0dcfff523444c54bd to your computer and use it in GitHub Desktop.
#!/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