ππΌ Sanitize and validate inputs.
npm i -S joemccann/sanitizer
Then in your Node.js app:
const { isEmail } = require('sanitizer')
const myEmail = `foo@bar.com`
if( isEmail(myEmail) ) console.log("π")
else console.log("π‘")
npm i -D
npm test
MIT