103 lines
6.2 KiB
JSON
103 lines
6.2 KiB
JSON
{
|
||
"_args": [
|
||
[
|
||
{
|
||
"raw": "isemail@2.x.x",
|
||
"scope": null,
|
||
"escapedName": "isemail",
|
||
"name": "isemail",
|
||
"rawSpec": "2.x.x",
|
||
"spec": ">=2.0.0 <3.0.0",
|
||
"type": "range"
|
||
},
|
||
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/joi"
|
||
]
|
||
],
|
||
"_from": "isemail@>=2.0.0 <3.0.0",
|
||
"_id": "isemail@2.2.1",
|
||
"_inCache": true,
|
||
"_location": "/isemail",
|
||
"_nodeVersion": "6.3.0",
|
||
"_npmOperationalInternal": {
|
||
"host": "packages-16-east.internal.npmjs.com",
|
||
"tmp": "tmp/isemail-2.2.1.tgz_1469731465782_0.02718323841691017"
|
||
},
|
||
"_npmUser": {
|
||
"name": "hueniverse",
|
||
"email": "eran@hammer.io"
|
||
},
|
||
"_npmVersion": "3.10.3",
|
||
"_phantomChildren": {},
|
||
"_requested": {
|
||
"raw": "isemail@2.x.x",
|
||
"scope": null,
|
||
"escapedName": "isemail",
|
||
"name": "isemail",
|
||
"rawSpec": "2.x.x",
|
||
"spec": ">=2.0.0 <3.0.0",
|
||
"type": "range"
|
||
},
|
||
"_requiredBy": [
|
||
"/joi"
|
||
],
|
||
"_resolved": "https://registry.npmjs.org/isemail/-/isemail-2.2.1.tgz",
|
||
"_shasum": "0353d3d9a62951080c262c2aa0a42b8ea8e9e2a6",
|
||
"_shrinkwrap": null,
|
||
"_spec": "isemail@2.x.x",
|
||
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/joi",
|
||
"bugs": {
|
||
"url": "https://github.com/hapijs/isemail/issues"
|
||
},
|
||
"dependencies": {},
|
||
"description": "Validate an email address according to RFCs 5321, 5322, and others",
|
||
"devDependencies": {
|
||
"code": "3.x.x",
|
||
"lab": "10.x.x"
|
||
},
|
||
"directories": {},
|
||
"dist": {
|
||
"shasum": "0353d3d9a62951080c262c2aa0a42b8ea8e9e2a6",
|
||
"tarball": "https://registry.npmjs.org/isemail/-/isemail-2.2.1.tgz"
|
||
},
|
||
"engines": {
|
||
"node": ">=4.0.0"
|
||
},
|
||
"gitHead": "8e37e6159a333248f1492e44c359fb278f9d9550",
|
||
"homepage": "https://github.com/hapijs/isemail#readme",
|
||
"keywords": [
|
||
"isemail",
|
||
"validation",
|
||
"check",
|
||
"checking",
|
||
"verification",
|
||
"email",
|
||
"address",
|
||
"email address"
|
||
],
|
||
"license": "BSD-3-Clause",
|
||
"main": "lib/index.js",
|
||
"maintainers": [
|
||
{
|
||
"name": "hueniverse",
|
||
"email": "eran@hammer.io"
|
||
},
|
||
{
|
||
"name": "skeggse",
|
||
"email": "skeggse@gmail.com"
|
||
}
|
||
],
|
||
"name": "isemail",
|
||
"optionalDependencies": {},
|
||
"readme": "# isemail\n\nNode email address validation library\n\n[![Build Status](https://travis-ci.org/hapijs/isemail.png)](https://travis-ci.org/hapijs/isemail)<a href=\"#footnote-1\"><sup>[1]</sup></a>\n\nLead Maintainer: [Eli Skeggs][skeggse]\n\nThis library is a port of the PHP `is_email` function by Dominic Sayers.\n\nInstall\n=======\n\n```sh\n$ npm install isemail\n```\n\nTest\n====\n\nThe tests were pulled from `is_email`'s extensive [test suite][tests] on October 15, 2013. Many thanks to the contributors! Additional tests have been added to increase code coverage and verify edge-cases.\n\nRun any of the following.\n\n```sh\n$ lab\n$ npm test\n$ make test\n```\n\n_remember to_ `npm install` to get the development dependencies!\n\nAPI\n===\n\nvalidate(email, [options], [callback])\n--------------------------------------\n\nDetermines whether the `email` is valid or not, for various definitions thereof. Optionally accepts an `options` object and a `callback` function. Options may include `errorLevel` and `checkDNS`. The `callback` function will always be called if specified, and the result of the operation supplied as the only parameter to the callback function. If `validate()` is not asked to check for the existence of the domain (`checkDNS`), it will also synchronously return the result of the operation.\n\nUse `errorLevel` to specify the type of result for `validate()`. Passing a `false` literal will result in a true or false boolean indicating whether the email address is sufficiently defined for use in sending an email. Passing a `true` literal will result in a more granular numeric status, with zero being a perfectly valid email address. Passing a number will return `0` if the numeric status is below the `errorLevel` and the numeric status otherwise.\n\nThe `tldBlacklist` option can be either an object lookup table or an array of invalid top-level domains. If the email address has a top-level domain that is in the whitelist, the email will be marked as invalid.\n\nThe `tldWhitelist` option can be either an object lookup table or an array of valid top-level domains. If the email address has a top-level domain that is not in the whitelist, the email will be marked as invalid.\n\nOnly one of `tldBlacklist` and `tldWhitelist` will be consulted for TLD validity.\n\nThe `minDomainAtoms` option is an optional positive integer that specifies the minimum number of domain atoms that must be included for the email address to be considered valid. Be careful with the option, as some top-level domains, like `io`, directly support email addresses. To better handle fringe cases like the `io` TLD, use the `checkDNS` parameter, which will only allow email addresses for domains which have an MX record.\n\n### Examples\n\n```js\n$ node\n> var Isemail = require('isemail');\nundefined\n> var log = console.log.bind(console, 'result');\nundefined\n> Isemail.validate('test@iana.org');\ntrue\n> Isemail.validate('test@iana.org', log);\nresult true\ntrue\n> Isemail.validate('test@iana.org', {checkDNS: true});\nundefined\n> Isemail.validate('test@iana.org', {checkDNS: true}, log);\nundefined\nresult true\n> Isemail.validate('test@iana.org', {errorLevel: true});\n0\n> Isemail.validate('test@iana.org', {errorLevel: true}, log);\nresult 0\n0\n> Isemail.validate('test@e.com');\ntrue\n> Isemail.validate('test@e.com', {checkDNS: true, errorLevel: true}, log);\nundefined\nresult 6\n> Isemail.validate('test@e.com', {checkDNS: true, errorLevel: 7}, log);\nundefined\nresult 0\n> Isemail.validate('test@e.com', {checkDNS: true, errorLevel: 6}, log);\nundefined\nresult 6\n```\n\n<sup name=\"footnote-1\">[1]</sup>: if this badge indicates the build is passing, then isemail has 100% code coverage.\n\n[skeggse]: https://github.com/skeggse \"Eli Skeggs\"\n[tests]: http://isemail.info/_system/is_email/test/?all \"is_email test suite\"\n",
|
||
"readmeFilename": "README.md",
|
||
"repository": {
|
||
"type": "git",
|
||
"url": "git://github.com/hapijs/isemail.git"
|
||
},
|
||
"scripts": {
|
||
"test": "lab -a code -t 100 -L -m 5000",
|
||
"test-cov-html": "lab -a code -r html -o coverage.html -m 5000"
|
||
},
|
||
"version": "2.2.1"
|
||
}
|