{"name":"web3-providers-http","version":"1.2.9-rc.0","license":"LGPL-3.0","_id":"web3-providers-http@1.2.9-rc.0","maintainers":[{"name":"holgerd77","email":"Holger.Drewes@gmail.com"},{"name":"ralxz","email":"ryan@ryanio.com"}],"dist":{"shasum":"5db5619cd83caba25061ff57e27458aa9c736a3b","tarball":"http://registry-npm.ywwl.com/web3-providers-http/download/web3-providers-http-1.2.9-rc.0.tgz","fileCount":8,"integrity":"sha512-8UslQU+byC6u3xuAmbM7qAAA3NjErX3gwcvN3w385hVJR6sfmBFz/7hT5S6ODtd2hh/GgI/z0Qux1y1Kdv7HQQ==","signatures":[{"sig":"MEYCIQCdwTlgzn9hbJbzlF92sJ0qCSHdVTaMCr7B3u/R/4coMwIhAJ+VOYjv+3J+cW9nREM9SvS2tYNsWCyNlvQWhjZooY7d","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\nwsFcBAEBCAAQBQJe1tkDCRA9TVsSAnZWagAA9KsP/iSQcPvbw+9FgurEIaaF\nL7QVuVzIBlVYtfxyMaFVjJS6vyOE3sqOjYM0ipAjaCPhASX8W31t+IjHDXbi\nzu8ZZxQnyvDXIAz5tPckK87vZUUYECHpCctHaeXkqZO2pUYzcrq2iwGs6pHX\nYZTP9QJlpFQZDHP1MmZMCevujur//bxrpBVZ9A6gVMMtJpxWkg/ETQ80c+xs\nt9rrtmgY5hLh9yQoWfLCy6f13/tzg7QQnU67xNCby4OeX+Qv7ADabDSE+ftZ\ne+f8obDP4C7YmYvkFUERVIXhKmRuX8xi3oMRGprQdrBCsQMY/fJgLH7/imMQ\n1hTDLLed4pCXo6a0PFhP2tAcnsqAxuaPUyyUnUEV2x0hp+51u7cL42H9VVCC\nqq4w/N1D2CzxUOlDdoVOyiMWdZfbxoHKOLx463mVG639lw8ZRlggNWVdRNJQ\npKDia0l8XqTbAP98+GpRIBO7ZRMB1aCQQmy6vBVKaXJakLKJ45S5ptSiV2Bt\n405C6NtAvsr/Xph2TWHX8MySdDlBeP2Ay7gijKm8ctgQJg1SFHgboVX/qdXq\nClZGmsWOoSXxfoHr2l7CRTzlNkAj6JGmSxf29TQwUfd607vYDW4JGSSfPwwt\nX/J3igIuzCAupwmnanYP1keAUy+eJX9C3U2XMVZ4XmoM66JSazEYMMMT1ClS\nSKNU\r\n=QzC+\r\n-----END PGP SIGNATURE-----\r\n","size":3622,"noattachment":false,"key":"/web3-providers-http/-/web3-providers-http-1.2.9-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":"7d94fdb22808ee95de326208f6086fb29ad6bca1","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.9-rc.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"dtslint":"^3.4.1","typescript":"latest"},"_npmOperationalInternal":{"tmp":"tmp/web3-providers-http_1.2.9-rc.0_1591138562532_0.7340141584487516","host":"s3://npm-registry-packages"},"publish_time":1591138562689,"_cnpm_publish_time":1591138562689,"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"}}