PageRenderTime 67ms CodeModel.GetById 32ms RepoModel.GetById 1ms app.codeStats 0ms

/node_modules/follow-redirects/package.json

https://bitbucket.org/MichaelSzer/escaneameempresas
JSON | 144 lines | 144 code | 0 blank | 0 comment | 0 complexity | 81521318d70bc8b97754787956185bdf MD5 | raw file
Possible License(s): BSD-2-Clause, Apache-2.0, WTFPL, 0BSD, Unlicense, JSON, CC-BY-SA-3.0, MIT, BSD-3-Clause
  1. {
  2. "_args": [
  3. [
  4. {
  5. "raw": "follow-redirects@^1.2.3",
  6. "scope": null,
  7. "escapedName": "follow-redirects",
  8. "name": "follow-redirects",
  9. "rawSpec": "^1.2.3",
  10. "spec": ">=1.2.3 <2.0.0",
  11. "type": "range"
  12. },
  13. "/home/michael/Documents/Projects/EscaneameEmpresas/node_modules/axios"
  14. ]
  15. ],
  16. "_from": "follow-redirects@>=1.2.3 <2.0.0",
  17. "_id": "follow-redirects@1.4.1",
  18. "_inCache": true,
  19. "_location": "/follow-redirects",
  20. "_nodeVersion": "8.9.4",
  21. "_npmOperationalInternal": {
  22. "host": "s3://npm-registry-packages",
  23. "tmp": "tmp/follow-redirects-1.4.1.tgz_1516754560314_0.16931934002786875"
  24. },
  25. "_npmUser": {
  26. "name": "rubenverborgh",
  27. "email": "ruben.verborgh@gmail.com"
  28. },
  29. "_npmVersion": "5.6.0",
  30. "_phantomChildren": {
  31. "ms": "2.0.0"
  32. },
  33. "_requested": {
  34. "raw": "follow-redirects@^1.2.3",
  35. "scope": null,
  36. "escapedName": "follow-redirects",
  37. "name": "follow-redirects",
  38. "rawSpec": "^1.2.3",
  39. "spec": ">=1.2.3 <2.0.0",
  40. "type": "range"
  41. },
  42. "_requiredBy": [
  43. "/axios"
  44. ],
  45. "_resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.4.1.tgz",
  46. "_shasum": "d8120f4518190f55aac65bb6fc7b85fcd666d6aa",
  47. "_shrinkwrap": null,
  48. "_spec": "follow-redirects@^1.2.3",
  49. "_where": "/home/michael/Documents/Projects/EscaneameEmpresas/node_modules/axios",
  50. "author": {
  51. "name": "Olivier Lalonde",
  52. "email": "olalonde@gmail.com",
  53. "url": "http://www.syskall.com"
  54. },
  55. "bugs": {
  56. "url": "https://github.com/olalonde/follow-redirects/issues"
  57. },
  58. "contributors": [
  59. {
  60. "name": "James Talmage",
  61. "email": "james@talmage.io"
  62. },
  63. {
  64. "name": "Ruben Verborgh",
  65. "email": "ruben@verborgh.org",
  66. "url": "https://ruben.verborgh.org/"
  67. }
  68. ],
  69. "dependencies": {
  70. "debug": "^3.1.0"
  71. },
  72. "description": "HTTP and HTTPS modules that follow redirects.",
  73. "devDependencies": {
  74. "bluebird": "^3.5.1",
  75. "concat-stream": "^1.6.0",
  76. "coveralls": "^3.0.0",
  77. "eslint": "^4.16.0",
  78. "express": "^4.16.2",
  79. "mocha": "^5.0.0",
  80. "nyc": "^11.4.1"
  81. },
  82. "directories": {},
  83. "dist": {
  84. "integrity": "sha512-uxYePVPogtya1ktGnAAXOacnbIuRMB4dkvqeNz2qTtTQsuzSfbDolV+wMMKxAmCx0bLgAKLbBOkjItMbbkR1vg==",
  85. "shasum": "d8120f4518190f55aac65bb6fc7b85fcd666d6aa",
  86. "tarball": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.4.1.tgz"
  87. },
  88. "engines": {
  89. "node": ">=4.0"
  90. },
  91. "files": [
  92. "index.js",
  93. "create.js",
  94. "http.js",
  95. "https.js"
  96. ],
  97. "gitHead": "1b6340f83ad5596a0a38c16a7113692bd90301f2",
  98. "homepage": "https://github.com/olalonde/follow-redirects",
  99. "keywords": [
  100. "http",
  101. "https",
  102. "url",
  103. "redirect",
  104. "client",
  105. "location",
  106. "utility"
  107. ],
  108. "license": "MIT",
  109. "main": "index.js",
  110. "maintainers": [
  111. {
  112. "name": "rubenverborgh",
  113. "email": "ruben.verborgh@gmail.com"
  114. },
  115. {
  116. "name": "jamestalmage",
  117. "email": "james@talmage.io"
  118. },
  119. {
  120. "name": "olalonde",
  121. "email": "olalonde@gmail.com"
  122. }
  123. ],
  124. "name": "follow-redirects",
  125. "nyc": {
  126. "reporter": [
  127. "lcov",
  128. "text"
  129. ]
  130. },
  131. "optionalDependencies": {},
  132. "readme": "## Follow Redirects\n\nDrop-in replacement for Nodes `http` and `https` that automatically follows redirects.\n\n[![npm version](https://badge.fury.io/js/follow-redirects.svg)](https://www.npmjs.com/package/follow-redirects)\n[![Build Status](https://travis-ci.org/olalonde/follow-redirects.svg?branch=master)](https://travis-ci.org/olalonde/follow-redirects)\n[![Coverage Status](https://coveralls.io/repos/olalonde/follow-redirects/badge.svg?branch=master)](https://coveralls.io/r/olalonde/follow-redirects?branch=master)\n[![Dependency Status](https://david-dm.org/olalonde/follow-redirects.svg)](https://david-dm.org/olalonde/follow-redirects)\n[![devDependency Status](https://david-dm.org/olalonde/follow-redirects/dev-status.svg)](https://david-dm.org/olalonde/follow-redirects#info=devDependencies)\n\n[![NPM](https://nodei.co/npm/follow-redirects.png?downloads=true)](https://nodei.co/npm/follow-redirects/)\n\n`follow-redirects` provides [request](https://nodejs.org/api/http.html#http_http_request_options_callback) and [get](https://nodejs.org/api/http.html#http_http_get_options_callback)\n methods that behave identically to those found on the native [http](https://nodejs.org/api/http.html#http_http_request_options_callback) and [https](https://nodejs.org/api/https.html#https_https_request_options_callback)\n modules, with the exception that they will seamlessly follow redirects.\n\n```javascript\nvar http = require('follow-redirects').http;\nvar https = require('follow-redirects').https;\n\nhttp.get('http://bit.ly/900913', function (response) {\n response.on('data', function (chunk) {\n console.log(chunk);\n });\n}).on('error', function (err) {\n console.error(err);\n});\n```\n\nYou can inspect the final redirected URL through the `responseUrl` property on the `response`.\nIf no redirection happened, `responseUrl` is the original request URL.\n\n```javascript\nhttps.request({\n host: 'bitly.com',\n path: '/UHfDGO',\n}, function (response) {\n console.log(response.responseUrl);\n // 'http://duckduckgo.com/robots.txt'\n});\n```\n\n## Options\n### Global options\nGlobal options are set directly on the `follow-redirects` module:\n\n```javascript\nvar followRedirects = require('follow-redirects');\nfollowRedirects.maxRedirects = 10;\nfollowRedirects.maxBodyLength = 20 * 1024 * 1024; // 20 MB\n```\n\nThe following global options are supported:\n\n- `maxRedirects` (default: `21`) – sets the maximum number of allowed redirects; if exceeded, an error will be emitted.\n\n- `maxBodyLength` (default: 10MB) – sets the maximum size of the request body; if exceeded, an error will be emitted.\n\n\n### Per-request options\nPer-request options are set by passing an `options` object:\n\n```javascript\nvar url = require('url');\nvar followRedirects = require('follow-redirects');\n\nvar options = url.parse('http://bit.ly/900913');\noptions.maxRedirects = 10;\nhttp.request(options);\n```\n\nIn addition to the [standard HTTP](https://nodejs.org/api/http.html#http_http_request_options_callback) and [HTTPS options](https://nodejs.org/api/https.html#https_https_request_options_callback),\nthe following per-request options are supported:\n- `followRedirects` (default: `true`) – whether redirects should be followed.\n\n- `maxRedirects` (default: `21`) – sets the maximum number of allowed redirects; if exceeded, an error will be emitted.\n\n- `maxBodyLength` (default: 10MB) – sets the maximum size of the request body; if exceeded, an error will be emitted.\n\n- `agents` (default: `undefined`) – sets the `agent` option per protocol, since HTTP and HTTPS use different agents. Example value: `{ http: new http.Agent(), https: new https.Agent() }`\n\n\n### Advanced usage\nBy default, `follow-redirects` will use the Node.js default implementations\nof [`http`](https://nodejs.org/api/http.html)\nand [`https`](https://nodejs.org/api/https.html).\nTo enable features such as caching and/or intermediate request tracking,\nyou might instead want to wrap `follow-redirects` around custom protocol implementations:\n\n```javascript\nvar followRedirects = require('follow-redirects').wrap({\n http: require('your-custom-http'),\n https: require('your-custom-https'),\n});\n```\n\nSuch custom protocols only need an implementation of the `request` method.\n\n## Browserify Usage\n\nDue to the way `XMLHttpRequest` works, the `browserify` versions of `http` and `https` already follow redirects.\n If you are *only* targeting the browser, then this library has little value for you. If you want to write cross\n platform code for node and the browser, `follow-redirects` provides a great solution for making the native node\n modules behave the same as they do in browserified builds in the browser. To avoid bundling unnecessary code\n you should tell browserify to swap out `follow-redirects` with the standard modules when bundling.\n To make this easier, you need to change how you require the modules:\n\n```javascript\nvar http = require('follow-redirects/http');\nvar https = require('follow-redirects/https');\n```\n\nYou can then replace `follow-redirects` in your browserify configuration like so:\n\n```javascript\n\"browser\": {\n \"follow-redirects/http\" : \"http\",\n \"follow-redirects/https\" : \"https\"\n}\n```\n\nThe `browserify-http` module has not kept pace with node development, and no long behaves identically to the native\n module when running in the browser. If you are experiencing problems, you may want to check out\n [browserify-http-2](https://www.npmjs.com/package/http-browserify-2). It is more actively maintained and\n attempts to address a few of the shortcomings of `browserify-http`. In that case, your browserify config should\n look something like this:\n\n```javascript\n\"browser\": {\n \"follow-redirects/http\" : \"browserify-http-2/http\",\n \"follow-redirects/https\" : \"browserify-http-2/https\"\n}\n```\n\n## Contributing\n\nPull Requests are always welcome. Please [file an issue](https://github.com/olalonde/follow-redirects/issues)\n detailing your proposal before you invest your valuable time. Additional features and bug fixes should be accompanied\n by tests. You can run the test suite locally with a simple `npm test` command.\n\n## Debug Logging\n\n`follow-redirects` uses the excellent [debug](https://www.npmjs.com/package/debug) for logging. To turn on logging\n set the environment variable `DEBUG=follow-redirects` for debug output from just this module. When running the test\n suite it is sometimes advantageous to set `DEBUG=*` to see output from the express server as well.\n\n## Authors\n\n- Olivier Lalonde (olalonde@gmail.com)\n- James Talmage (james@talmage.io)\n- [Ruben Verborgh](https://ruben.verborgh.org/)\n\n## License\n\nMIT: [http://olalonde.mit-license.org](http://olalonde.mit-license.org)\n",
  133. "readmeFilename": "README.md",
  134. "repository": {
  135. "type": "git",
  136. "url": "git+ssh://git@github.com/olalonde/follow-redirects.git"
  137. },
  138. "scripts": {
  139. "lint": "eslint *.js test",
  140. "mocha": "nyc mocha",
  141. "test": "npm run lint && npm run mocha"
  142. },
  143. "version": "1.4.1"
  144. }