{"name":"web3-providers-http","version":"1.2.8-rc.1","license":"LGPL-3.0","_id":"web3-providers-http@1.2.8-rc.1","maintainers":[{"name":"holgerd77","email":"Holger.Drewes@gmail.com"},{"name":"ralxz","email":"ryan@ryanio.com"}],"dist":{"shasum":"55e4765f2e3df2f3024aea36f3eb651892393eaa","tarball":"http://registry-npm.ywwl.com/web3-providers-http/download/web3-providers-http-1.2.8-rc.1.tgz","fileCount":8,"integrity":"sha512-X4u93RUPKzGsy9QkU+WJGwMTAyL/zlJTuoetQeK5k0pNkByyQOXIYe48A3PHkEHLYHMmsK0ljwfj+FsMG/OVmw==","signatures":[{"sig":"MEQCIA7ysmPuXX+36aIOyQXO/rUOvaDt9cwbB8qeEjyqXfmmAiAyjgtGJNEU8/trR0tQjC6BpSbngnu9nZpSb+GY4cSZWg==","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\nwsFcBAEBCAAQBQJewuZoCRA9TVsSAnZWagAAqJAP/0aFiB1xfgH7bOYiyMSs\nqhXfeQrn9IP3UNm/Fr3vDPpRh+iut1u7UBdJlndC/OH5dgTMpm2fXsgU1tEM\nFnMzVOjC3FWaG5xsWqW2F7ECfq/8UdfYIuqHqfMFelx30PrRDfcXd/0Pgp67\nHuRSCE5Ym9jr0j0nox4W2ZTnOSCX2EtXmgzGTeGze34CVOe6G/RkqobMXmv/\n1/BTs/AmX45XedLuhRoRZ+mV+N26uktcWpB8HlEm+OZT5SGi4/nAdnfPc1Q4\ni6ZrCS8UbYAaGiBXVixK37UeKrytaXiegM5yAKCf2/DZqDfDRoD08FQDqWSj\nGQy9Y6ooSgLDeptUfXBqksVvhAJDHuU+28wz/KMQKjg1K6qyQYfAPu034dU0\nL0qgdhAUGQP+Jz+NOnTawEo5ihjNWRcYYQVxSwq6awJvabUda414Swzyy6uV\n6awdupqC2ZxLHZphVQkHwfpezLG+8n6KOo/YNtYDwDGWrwVtgTMDWJj7o9zc\nmsFJGsMnSlT7lzJxrw+98+5jl1Mv5uqmfWtAadxAe42Vu1/sN4ihNvkZAa6T\nhEOls8XlwMZ9FAUqnfggSZH/3jtyH5MY6pc+dYauw1WDXnG63zpssTe8wR4k\nMLGvYndeRhStcmCliTj9Fcn6yJfxMI74clZPu+t9jV9gUHiwRAJI2mMWvb2Q\nZlQm\r\n=0NQL\r\n-----END PGP SIGNATURE-----\r\n","size":3619,"noattachment":false,"key":"/web3-providers-http/-/web3-providers-http-1.2.8-rc.1.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":"62890027ca41f9e272ba3ed83c4d83fd2a7aeced","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.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"dtslint":"^3.4.1","typescript":"latest"},"_npmOperationalInternal":{"tmp":"tmp/web3-providers-http_1.2.8-rc.1_1589831272488_0.5968295763447722","host":"s3://npm-registry-packages"},"publish_time":1589831272611,"_cnpm_publish_time":1589831272611,"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"}}