isDate, isUUID, and isEmail for use with
help-gen
$ npm install --save @helpdotcom/is$ npm test'use strict'
const is = require('@helpdotcom/is')Returns true if d is a valid ISO date string. Otherwise, returns false.
s<String>The email string
Returns true if s is a valid email address. Otherwise, returns false.
s<String>The email string
Returns true if s is a valid email address with an optional name.
Otherwise, returns false.
The following formats are supported:
evan.lucas@help.comEvan Lucas <evan.lucas@help.com>"Evan Lucas" <evan.lucas@help.com>"Help.com, LLC" <info@help.com>Help.com, LLC <info@help.com>Jane Doe (maiden name) <jane@doe.com>
s<String>The uuid to test.
Returns true if s is a valid v4 UUID. Otherwise, returns false.
s<String>The url to test.
Returns true if s is a valid URL. Otherwise, returns false.
s<String>The url to test.
Returns true if s is a valid ip with CIDR notation. Otherwise, returns false.
Evan Lucas
MIT (See LICENSE for more info)