{"name":"web3-providers-http","version":"1.9.0-rc.0","license":"LGPL-3.0","_id":"web3-providers-http@1.9.0-rc.0","maintainers":[{"name":"nazarhussain86","email":"nazarhussain@gmail.com"},{"name":"jdevcs","email":"junaid@chainsafe.io"},{"name":"gregthegreek","email":"gregorymarkou@gmail.com"},{"name":"spacesailor","email":"signup@wyatt.email"}],"homepage":"https://github.com/ethereum/web3.js/tree/1.x#readme","bugs":{"url":"https://github.com/ethereum/web3.js/issues"},"dist":{"shasum":"52e0e63ea664610206c44c7603f7eff2f659d4dc","tarball":"http://registry-npm.ywwl.com/web3-providers-http/download/web3-providers-http-1.9.0-rc.0.tgz","fileCount":10,"integrity":"sha512-lCq6QflXfCJKzEtH3/Mw2ddfmJT1G0cm7U1wQiBM3bmRQs+Hj6PJTHtq0ilMo6wGLnN7Wc5G4U0CYwIJ+bXuHg==","signatures":[{"sig":"MEQCIDstT/5V6METw0LAirg96BOblObtJyXntV/FbjDm3vP5AiAdqRE1BscMAeczgel5+k9ul1/lHYeqd3ekIvhsQ7c9mw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18017,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkB2iJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrgtRAAo808Wc1QsFYt9H5QFM7b5siQlTG/kb6irlHx1HpTy4fRgM78\r\nq6OcdFq1FlwxwscQHuEaNRqnPdlCoZkWxyDMVhIFl4Htlr8VYqG49sK7pkxo\r\nXxWw3EJvQsgvvIzJFDakWnrsHoZOuqUNVJK51MhhpogwfiJvfB2StHfP5c/g\r\niiu0CFkP3YgPrMhrkCk4Fe/u8javKgj5F02S6kIg6WwB13d+T5NgJFRbK6wW\r\nmqFG5C4n2XmGjEKU5YzobwrsS+fcnYGszbWy+DocNM9PFlrVk/V38/RNWjl9\r\n4ehcjptTSzYpccH7GheCSb9pGi+y6NiyeQx54l4VuUvM3t2cUcS7Y+B0+3X1\r\nHljQFX35UxRpV4/xT1ot9BMQAwviaq9fpwv3cNurGVI7cYojkHd0rVpUrfzs\r\nsCBVbH9urbq/CvExJaQLALkDy0Z50WsLhYAwoHBOcmp8KXo84RRT8KGBYlFJ\r\nf66UsQqfzpc6DRdWonWAlWTDTxqMoKsh7P62jzlRu6085TCj85MGbq7OP1zN\r\n+zhXaovRclpVclbljHOWMo3gtPEX2ynWHmPieqBKOqls/WyEHcXxVooS67/R\r\n7LuoP0Jd3EPv66akYgtZcgF5mEzznxab6sihtdY2Ld5vcj+VXuPnNj0PfXdD\r\naB+FBKVmBFr1Jo4uAMCChDOPtFIq3nWn+Ig=\r\n=21h4\r\n-----END PGP SIGNATURE-----\r\n","size":4259,"noattachment":false,"key":"/web3-providers-http/-/web3-providers-http-1.9.0-rc.0.tgz"},"main":"lib/index.js","types":"types/index.d.ts","readme":"# web3-providers-http\n\n[![NPM Package][npm-image]][npm-url]\n\nThis is a HTTP provider sub-package for [web3.js][repo].\n\nPlease read the [documentation][docs] for more.\n\n## Installation\n\nYou can install the package either using [NPM](https://www.npmjs.com/package/web3-providers-http) or using [Yarn](https://yarnpkg.com/package/web3-providers-http)\n\n### Using NPM\n\n```bash\nnpm install web3-providers-http\n```\n\n### Using Yarn\n\n```bash\nyarn add web3-providers-http\n```\n\n## Usage\n\n```js\nconst http = require('http');\nconst Web3HttpProvider = require('web3-providers-http');\n\nconst 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\nconst 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","engines":{"node":">=8.0.0"},"gitHead":"c564ebe63f9bc15e8f8f9e50f690be534534a917","scripts":{"compile":"tsc -b tsconfig.json","dtslint":"dtslint --localTs ../../node_modules/typescript/lib types"},"_npmUser":{"name":"jdevcs","email":"junaid@chainsafe.io"},"repository":{"url":"git+https://github.com/ethereum/web3.js.git#1.x","type":"git"},"_npmVersion":"lerna/6.1.0/node@v14.20.0+x64 (linux)","description":"Module to handle web3 RPC connections over HTTP.","directories":{},"_nodeVersion":"14.20.0","dependencies":{"cross-fetch":"^3.1.4","es6-promise":"^4.2.8","web3-core-helpers":"1.9.0-rc.0","abortcontroller-polyfill":"^1.7.3"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"dtslint":"^3.4.1","typescript":"4.1"},"_npmOperationalInternal":{"tmp":"tmp/web3-providers-http_1.9.0-rc.0_1678207112825_0.8754753951596805","host":"s3://npm-registry-packages"},"publish_time":1678207113062,"_cnpm_publish_time":1678207113062,"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"}}