{"name":"web3-providers-http","version":"1.7.4-rc.1","license":"LGPL-3.0","_id":"web3-providers-http@1.7.4-rc.1","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":"3e05990868d7cba79a25b84e8d785fce26d08dd8","tarball":"http://registry-npm.ywwl.com/web3-providers-http/download/web3-providers-http-1.7.4-rc.1.tgz","fileCount":10,"integrity":"sha512-bfzL4YKIDyoB7tvM91KhW3+DLTebYZUovAY7BT3wFENcBSt2ZSSS8tjB8fpHh7yknZ8f4nphC6KRDV7magmGCQ==","signatures":[{"sig":"MEQCIBz8EZF+MtBbxNqMJBvgbhsOujNZcGRdYE42AVP62+j7AiAreSfV4UTgUuUCgzSUmn3daTX9pIFdqUFS6s7r5w0d3w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15203,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJioMErACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqMChAAj1Y21Nvk9eupGIrkc9mX9qhFGm1wDne9k1EPLjpfF25wINZz\r\ne7hM6IHyUyr+JhOgxD/oWoYVe1pjHouTsQWBwf635GQ0n7sV05nkuBvGUonK\r\nwYj/Pbb2+V9d3GNXmoxWnVrWs0WU3IslBRyPZjmnk4o11k6exJKbj+4vJ9lB\r\n/YEOYxTYYr9mHAgjMcX7OVAy+ODtaAP6aEsFPm6vi5Q/NxoI9ORYs9Uu7vrl\r\nD1JrKlfsXNe3+fxB2yLfHkC4KuMBfunRKKevyspf5o+4RCqBgxL8fdIUbrf9\r\nuJU0XSixX0aOHz8YX/uyvjPbWIvcdtppkPOUdvjCgzRw/lTxumD0qvVe3wq7\r\nRqdlJ0d0NvUPv5j3Kqk1eWfMfCRUUKVGDoD+Z6pvy3o2jxy6FPGsHy7KJFFs\r\nvpCGEpwLmmHJ/sOrEzOj9LiwnfZ0LNB/99umyyFfcl26h4xhm1o0xU0jhIa2\r\nl3k/V/yMF9eecsX0dfGpKq4qBmn92eChEolXsinLbp9aa4VOwkzH/+Mmrdhg\r\nZsiJgj3cVVPyj2Ou/MX8P2o+r4dRBYSer84WDWZ/XrrmHTBIt5YHRe6rCxMC\r\nH4wZdXadu9NnOdO7kqb/jvBjwZ/f9QZB/KYuLqd4SF2fMaIAGK3yte70CmXE\r\nk7BeqkcSfub+snKQR1GAig57IEYtQyyN7jQ=\r\n=eRNW\r\n-----END PGP SIGNATURE-----\r\n","size":3737,"noattachment":false,"key":"/web3-providers-http/-/web3-providers-http-1.7.4-rc.1.tgz"},"main":"lib/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 HTTP provider sub-package 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## 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[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":"a286ab3a0a7866b88c206fd3d6f17033209f52a8","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/4.0.0/node@v14.17.2+x64 (linux)","description":"Module to handle web3 RPC connections over HTTP.","directories":{},"_nodeVersion":"14.17.2","dependencies":{"xhr2-cookies":"1.1.0","web3-core-helpers":"1.7.4-rc.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"dtslint":"^3.4.1","typescript":"^3.9.5"},"_npmOperationalInternal":{"tmp":"tmp/web3-providers-http_1.7.4-rc.1_1654702379211_0.5488709641969562","host":"s3://npm-registry-packages"},"publish_time":1654702379362,"_cnpm_publish_time":1654702379362,"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"}}