npm install regular --save
This module is simply a collection of regular expression. Use them as you would any other expression.
var regular = require'regular';firstname.lastname@example.org' // outputs true
credit cards(visa, mastercard, amex, discover)
US social security numbers
html(is this html?)