{"name":"web3-providers-http","version":"1.8.2-rc.0","license":"LGPL-3.0","_id":"web3-providers-http@1.8.2-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":"622c9a5820167eb883bb0893c95649fdcecd588a","tarball":"http://registry-npm.ywwl.com/web3-providers-http/download/web3-providers-http-1.8.2-rc.0.tgz","fileCount":10,"integrity":"sha512-RtEiPQWwOgpF623R2vVz/MZWtlpM/DBZ17UclQvBXwLdduSG2vkJLOuN+lY6fgJgh/WyRYAZ2spUL5v7XKywgQ==","signatures":[{"sig":"MEUCIQC2BkaYTPHp7BZnOcqkpkQi3Q3XW8XNlPMgxqpGcHuhrgIgRUupMLtANZVjYMJytmxnmSAoW9yVHa19vFeJCbWfRKM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17770,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvq59ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqWixAAnCvZTk80pKagvu29gWB3nM893O5MUNxqVSz+taWvx+tc5Re0\r\nKk2v+VlK+bfYzjag8hVYPLN3hSa1g/OzPNAN5jEaGKZgpt2TdEYvhV4Agavq\r\nz4YpzIDuIGGMoILxgOmoe+K57NQaWsUUOQWkdp5vhHeyrzEW85gV8gyO43Zl\r\n/xISUZJf16viCxUET6ykaU92J/l1jpU9pYxl6J23SyU/3fBQ5b79q7hk2OgW\r\nLQYiLlYYdKVb4k47SbhwJLbYmym/ePAe4LOxA520SQFp831I4awQPGn5YMGx\r\nlKByE7Nb0AaMO4hRn9mvAgoWLx4McluHeSs4EZq+wgwfHGqw0bOfes9US5uX\r\nbPAuifiyHQJZfBEr2V9MQCQWw6f9RX4Y3Kc0oUxPQDz8yOTPMdZ4dX4lJSlO\r\n8WY4CjkmazX99LTbpNXKntuCB1UhnHsqFcrKH5FxGfgWCIWLiZqPOT1iIPl4\r\ns4GuofnS6aFt6fSSCevAvfbzdZwOuNx+XwAGJJYC3aElGkpehq6e83Gq4CrY\r\nSaYSivEr7s/HNzPN7x8pJcoQrtWBYNfv5zSvi7+IIrrU5lkVkOf08z6kUCui\r\nmZVzieuoX5GEzMfMnj8elalGKWLftkldlsR1ikumB8ljBjQpIz6VZoEJVG0K\r\niO4HTiu7x7/1Zlt7tQR9SAVkUYOnM/LdX6o=\r\n=f+ZH\r\n-----END PGP SIGNATURE-----\r\n","size":4213,"noattachment":false,"key":"/web3-providers-http/-/web3-providers-http-1.8.2-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":"ad2c90f68cf7170fb25c74704a97be629e72f71a","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.8.2-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.8.2-rc.0_1673440893135_0.7187838398045119","host":"s3://npm-registry-packages"},"publish_time":1673440893328,"_cnpm_publish_time":1673440893328,"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"}}