{"name":"web3-providers-http","version":"1.2.7-rc.0","license":"LGPL-3.0","_id":"web3-providers-http@1.2.7-rc.0","maintainers":[{"name":"holgerd77","email":"Holger.Drewes@gmail.com"},{"name":"ralxz","email":"ryan@ryanio.com"}],"dist":{"shasum":"772384c125cc0efd5cac9200219be07789efd06a","tarball":"http://registry-npm.ywwl.com/web3-providers-http/download/web3-providers-http-1.2.7-rc.0.tgz","fileCount":8,"integrity":"sha512-0/QL3ybnm8pphtN9B1lo5ko4vPrlBgVp111LpoATt95A5oPrVGXAZVd6eNObQg4iwC9Gww8KdbFzpLGlYgHuPw==","signatures":[{"sig":"MEQCIH0/5Cutbb/CRH9aF5ljiLCaVrLFHOMIJ6xJ6r+fa88gAiBX47UxGuGKwiPxnJtQpJ6CXnlTuC3eqxynmQMpSQLItQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10376,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJelmv4CRA9TVsSAnZWagAAow8P/100IJf3+fNf+wXBgDSc\nMv1LJWXVoggPWjZzFaW8uXnPP/zIinHnopzWfvnIbxkibEDVYpbbf+PvzYUf\nfBvBaGcUE3TZN1P2CBJ20J3FKx/9krtKTr8ul0yB6Qz/SKEO6gDOrNl7B7hv\nZ7FgjnO8B71/kmYTAIF7CU1O0DS/hmwWyEik4gGSxlSxQH3J7iCeexR+KeHc\nqfVdpuGeJwqMd5s1/XKA/3tg7QtxhiO5mFPUvDGywBKLR5+GTbbLL1udU9QP\n98uuUV7WQGXLydEL2TcB+RtOxeIzOT93xHd/7wOuW7VAETXtTQp+yqo5jmq1\nkKLYqQ0bm1rzz0rd9/6urOzvsi6tOr7qVpvCtQSNG4NKhUS0XakwvKZ3Uyv7\nSYwQbC4PZZIVUdCU+I957tEvQP9TYS7WKEKI2v2NAfoj4AumbiqPEQ3EeLJI\nF5Qox49AopZ4Hjgqkf1CRFN7/m3s5vpGuYMXFvKGFT0R+OSh/5xn9JPMVRlA\ngWlPYcshBU3G/h+gMmQENG2zQVAlrlNEyE7fs+CRap+3WBauRo6x46fbUCjF\nMHlLPSAgVq5xv7iF+Zx6BFH74J+9gkbLEgx5hjE7Jge0ZwnZnQdsEQmJJ0k6\nXeyIAqtbbGTp6wb7zFRWSfSkRavjQvV7llQ6AT91o6uVAk0Ghr0HDGR8MD04\noVTh\r\n=KQ2G\r\n-----END PGP SIGNATURE-----\r\n","size":3428,"noattachment":false,"key":"/web3-providers-http/-/web3-providers-http-1.2.7-rc.0.tgz"},"main":"src/index.js","types":"types/index.d.ts","readme":"# web3-providers-http\n\n[![NPM Package][npm-image]][npm-url] [![Dependency Status][deps-image]][deps-url] [![Dev Dependency Status][deps-dev-image]][deps-dev-url]\n\nThis is a sub-package of [web3.js][repo].\n\nThis is a HTTP provider for [web3.js][repo].\n\nPlease read the [documentation][docs] for more.\n\n## Installation\n\n### Node.js\n\n```bash\nnpm install web3-providers-http\n```\n\n### In the Browser\n\nBuild running the following in the [web3.js][repo] repository:\n\n```bash\nnpm run-script build-all\n```\n\nThen include `dist/web3-providers-http.js` in your html file.\nThis will expose the `Web3HttpProvider` object on the window object.\n\n## Usage\n\n```js\n// in node.js\nvar http = require('http');\nvar Web3HttpProvider = require('web3-providers-http');\n\nvar options = {\n    keepAlive: true,\n    timeout: 20000, // milliseconds,\n    headers: [{name: 'Access-Control-Allow-Origin', value: '*'},{...}],\n    withCredentials: false,\n    agent: {http: http.Agent(...), baseUrl: ''}\n};\n\nvar provider = new Web3HttpProvider('http://localhost:8545', options);\n```\n\n## Types\n\nAll the TypeScript typings are placed in the `types` folder.\n\n[docs]: http://web3js.readthedocs.io/en/1.0/\n[repo]: https://github.com/ethereum/web3.js\n[npm-image]: https://img.shields.io/npm/dm/web3-providers-http.svg\n[npm-url]: https://npmjs.org/package/web3-providers-http\n[deps-image]: https://david-dm.org/ethereum/web3.js/1.x/status.svg?path=packages/web3-providers-http\n[deps-url]: https://david-dm.org/ethereum/web3.js/1.x?path=packages/web3-providers-http\n[deps-dev-image]: https://david-dm.org/ethereum/web3.js/1.x/dev-status.svg?path=packages/web3-providers-http\n[deps-dev-url]: https://david-dm.org/ethereum/web3.js/1.x?type=dev&path=packages/web3-providers-http\n","engines":{"node":">=8.0.0"},"gitHead":"598e53163890660670c46d84bb6a6cbee4693e41","scripts":{"dtslint":"dtslint types"},"_npmUser":{"name":"ralxz","email":"ryan@ryanio.com"},"repository":{"url":"https://github.com/ethereum/web3.js/tree/1.x/packages/web3-providers-http","type":"git"},"_npmVersion":"lerna/3.18.3/node@v10.16.2+x64 (darwin)","description":"Module to handle web3 RPC connections over HTTP.","directories":{},"_nodeVersion":"10.16.2","dependencies":{"xhr2-cookies":"1.1.0","web3-core-helpers":"1.2.7-rc.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"dtslint":"^3.4.1","definitelytyped-header-parser":"^3.9.0"},"_npmOperationalInternal":{"tmp":"tmp/web3-providers-http_1.2.7-rc.0_1586916343950_0.2219832501645156","host":"s3://npm-registry-packages"},"publish_time":1586916344041,"_cnpm_publish_time":1586916344041,"dist-tags":{"dev":"4.2.1-dev.bf16917.0","latest":"4.2.0","legacy":"1.10.4","legacy-dev":"1.10.4-dev.0","rc":"4.0.4-rc.0","rc-legacy":"1.10.1-rc.0"}}