{"name":"web3-providers-http","version":"1.2.8-rc.0","license":"LGPL-3.0","_id":"web3-providers-http@1.2.8-rc.0","maintainers":[{"name":"holgerd77","email":"Holger.Drewes@gmail.com"},{"name":"ralxz","email":"ryan@ryanio.com"}],"dist":{"shasum":"391336c816576d06f9fa7b01764bfda99fc2d1a1","tarball":"http://registry-npm.ywwl.com/web3-providers-http/download/web3-providers-http-1.2.8-rc.0.tgz","fileCount":8,"integrity":"sha512-ihUy+9QBxC3exPMXUHqmAwamwzrDeKHZkrA9QmQ3RWigjtmsGAdHA7QMz3SjI22g4NdRRtyy6XwzkHejcRjOSg==","signatures":[{"sig":"MEYCIQDKChMuZa265Xg856/CKxyG0OKnWaKSBxib4IIZ7NlaxQIhAJnmr89j6Pyz2Fbgk6ijaGQ4waPmcOt0KQwY0Ptg4kl/","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11224,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJetav4CRA9TVsSAnZWagAA/DoP/2LpOnpiP39JufTWU7vU\nUOl4Ljr0ke6EPs6eOhH3ceyUs+sRn/7EevAXqZO5Pus1+fgMptw23gPQgcsu\nFSc/CdLxZCIph54dbqsJsFbh0sPVtysy8ojIaRDUb1cmheZM7ssR0gOTI9Mr\nChu29x/nLtNSBWdkG0FwPnmcOKKjvKQdUcZcLJP7+PzKhM/ZGNAvZeMfX8JE\nLkAzAXvRIDwNPIbYHmrBmAe5Ma4dR7FXE1JkmtJNIYJgfQYkXZ2T1QCLDcv7\nRRKC3ZS6iwj+96irGgkSvp0tdCzDshRgXyn095NiGizU6bxDMEBYT2nnZvj7\nfZHpmsdEmqz5mjnw7TF+bZdyDK+nfqRfYqq06eIQzOek/2HGtyGXj3pemBUk\nVCD6tzC7+xW3A3lRtOfWJliJMTPkhj1FHovym+O0gwO0phmcRYt6lB8f2B5t\ndxpawt0aWMJ7kSwgR+A9iyg5PtDs453gdPXWsSmVKh+QgVRWcrFibK1N78Vu\nslqfxax7PCdYUpwiexG4MNuJspFfAp3tRcVsO4Udi/6qL2LTpFKbh02mKxsU\nP80ptSNywud3LGWTamPtTlheEAp5rcGr8IEaFQmuTWn/u+fW2MII95DGP2Ck\n+wxtTECh3UorQ1EvMgGGS5/3zyKpWKCZ5MRzUIP515ed6M55th9G4LrmgxqB\nLAqu\r\n=04VX\r\n-----END PGP SIGNATURE-----\r\n","size":3620,"noattachment":false,"key":"/web3-providers-http/-/web3-providers-http-1.2.8-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":"035d11acced0bdd43e500d4defbfdcd1b70768d7","scripts":{"dtslint":"dtslint --localTs node_modules/typescript/lib 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.20.2/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.8-rc.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"dtslint":"^3.4.1","typescript":"latest"},"_npmOperationalInternal":{"tmp":"tmp/web3-providers-http_1.2.8-rc.0_1588964343701_0.9085016244502662","host":"s3://npm-registry-packages"},"publish_time":1588964343786,"_cnpm_publish_time":1588964343786,"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"}}