package.json
5.0 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
"_args": [
[
{
"raw": "nodemailer-fetch@1.6.0",
"scope": null,
"escapedName": "nodemailer-fetch",
"name": "nodemailer-fetch",
"rawSpec": "1.6.0",
"spec": "1.6.0",
"type": "version"
},
"/Users/fzy/project/koa2_Sequelize_project/node_modules/nodemailer-shared"
]
],
"_from": "nodemailer-fetch@1.6.0",
"_id": "nodemailer-fetch@1.6.0",
"_inCache": true,
"_location": "/nodemailer-fetch",
"_nodeVersion": "6.3.1",
"_npmOperationalInternal": {
"host": "packages-12-west.internal.npmjs.com",
"tmp": "tmp/nodemailer-fetch-1.6.0.tgz_1471509114442_0.5888715244363993"
},
"_npmUser": {
"name": "andris",
"email": "andris@kreata.ee"
},
"_npmVersion": "3.10.3",
"_phantomChildren": {},
"_requested": {
"raw": "nodemailer-fetch@1.6.0",
"scope": null,
"escapedName": "nodemailer-fetch",
"name": "nodemailer-fetch",
"rawSpec": "1.6.0",
"spec": "1.6.0",
"type": "version"
},
"_requiredBy": [
"/nodemailer-shared"
],
"_resolved": "https://registry.npmjs.org/nodemailer-fetch/-/nodemailer-fetch-1.6.0.tgz",
"_shasum": "79c4908a1c0f5f375b73fe888da9828f6dc963a4",
"_shrinkwrap": null,
"_spec": "nodemailer-fetch@1.6.0",
"_where": "/Users/fzy/project/koa2_Sequelize_project/node_modules/nodemailer-shared",
"author": {
"name": "Andris Reinman"
},
"bugs": {
"url": "https://github.com/nodemailer/nodemailer-fetch/issues"
},
"dependencies": {},
"description": "GET HTTP contents",
"devDependencies": {
"chai": "^3.5.0",
"grunt": "^1.0.1",
"grunt-eslint": "^19.0.0",
"grunt-mocha-test": "^0.12.7",
"mocha": "^3.0.2"
},
"directories": {},
"dist": {
"shasum": "79c4908a1c0f5f375b73fe888da9828f6dc963a4",
"tarball": "https://registry.npmjs.org/nodemailer-fetch/-/nodemailer-fetch-1.6.0.tgz"
},
"gitHead": "581580f1b21c61c10a3296c249f90d436fac8926",
"homepage": "https://github.com/nodemailer/nodemailer-fetch#readme",
"keywords": [
"nodemailer",
"http"
],
"license": "MIT",
"main": "lib/fetch.js",
"maintainers": [
{
"name": "andris",
"email": "andris@kreata.ee"
}
],
"name": "nodemailer-fetch",
"optionalDependencies": {},
"readme": "# nodemailer-fetch\n\nFetches HTTP URL contents for [nodemailer](https://github.com/nodemailer/nodemailer).\n\n[](http://travis-ci.org/nodemailer/nodemailer-fetch)\n<a href=\"http://badge.fury.io/js/nodemailer-fetch\"><img src=\"https://badge.fury.io/js/nodemailer-fetch.svg\" alt=\"NPM version\" height=\"18\"></a>\n\n## Usage\n\n```javascript\nvar fetch = require('nodemailer-fetch');\nfetch('http://www.google.com/').pipe(process.stdout);\n```\n\nThe method takes the destination URL as the first and optional options object as the second argument.\n\nThe defaults are the following:\n\n * Default method is GET\n * Basic auth is supported\n * Up to 5 redirects are followed (Basic auth gets lost after first redirect)\n * gzip is handled if present\n * Cookies are supported\n * No shared HTTP Agent\n * Invalid SSL certs are allowed. Can be overwritten with the `tls` option\n\n### options\n\nPossible options are the following:\n\n * **userAgent** a string defining the User Agent of the request (by default not set)\n * **cookie** a cookie string or an array of cookie strings where a cookie is the value used by 'Set-Cookie' header\n * **maxRedirects** how many redirects to allow (defaults to 5, set to 0 to disable redirects entirely)\n * **method** HTTP method to use, defaults to GET (if `body` is set defaults to POST)\n * **body** HTTP payload to send. If the value is an object it is converted to an *x-www-form-urlencoded* payload, other values are passed as is. Unlike authentication data payload and method is preserved between redirects\n * **contentType** optional content type for the HTTP payload. Defaults to *x-www-form-urlencoded*. If the value is `false` then Content-Type header is not set\n * **tls** optional object of TLS options\n * **timeout** (milliseconds) sets timeout for the connection. Returns an error if timeout occurs\n * **headers** custom headers as an object where key is the header key and value is either a string or an array of strings for multiple values\n\n ```javascript\n var fetch = require('nodemailer-fetch');\n fetch('http://www.google.com/', {\n cookie: [\n 'cookie_name1=cookie_value1',\n 'cookie_name2=cookie_value2; expires=Sun, 16 Jul 3567 06:23:41 GMT',\n ],\n userAgent: 'MyFetcher/1.0'\n }).pipe(process.stdout);\n ```\n\n> Cookies are domain specific like normal browser cookies, so if a redirect happens to another domain, then cookies are not passed to it, HTTPS-only cookies are not passed to HTTP etc.\n\n## License\n**MIT**\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/nodemailer/nodemailer-fetch.git"
},
"scripts": {
"test": "grunt mochaTest"
},
"version": "1.6.0"
}