{"name":"web3-providers-http","version":"1.5.0-rc.1","license":"LGPL-3.0","_id":"web3-providers-http@1.5.0-rc.1","maintainers":[{"name":"ralxz","email":"ryan@ryanio.com"},{"name":"gregthegreek","email":"gregorymarkou@gmail.com"},{"name":"spacesailor","email":"signup@wyatt.email"}],"dist":{"shasum":"77da1de0660d70d7ac47fdca4a640236ff9cd273","tarball":"http://registry-npm.ywwl.com/web3-providers-http/download/web3-providers-http-1.5.0-rc.1.tgz","fileCount":10,"integrity":"sha512-WpJW4UhOJ7DVnToj3uml5SgdxT55j8BFsxesFiXv3qywtpldL+P9pGLe8q1Rex+pIqao0+Zhe5yutD3FxJGeog==","signatures":[{"sig":"MEUCIBgNCHOfiTj8dhp5Nmvds8VFGcsGSaISLGnjlswWsZ/5AiEAuHQRZanhfh5RWwbcpN17JbNRSyc6+PFJwdhyoaUamFY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15203,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg++JjCRA9TVsSAnZWagAAgewP/3bAV9pD3rQeWMe+ernM\n3YJedX7XyhqadU8ij7rrc2CiibQghjjYw5mEhSXmHgNiPa7A6EFZ9W3gzmc1\noj/56E1/i3J67luejl/f8kMGRbi1FMbkePHRd382qVEZmW6q7H83jzrBs7ip\nZd8tMl7+VnUtaVP+sqkP0y6pdQ60EAjWtA46wkfdpCC9BrLefrDA+kz8Tp44\n4NAnAD2v8maGOYv/ZS5JYDoBnvgIyE3AQUihUJcb7PR5Y5DM+7xYqNnagrob\n/uqjWqt15Yk8hxmEopvzoY/vUplOWuMufaXWyhkmISJ0lJgtUn5rdZ89wHUo\n75DRIXV25uCH4U6tvEbVcYmVtBUMTGsfJwFcLcM0J3zF81lxwM3XGaB349zf\niuPabAwZxtheMPcYZ7Jyv6d8Ry7SdB953gAsytqGGp7ljukhwMefZUekazX5\nQOpBWYHFl/fEUdG1kmMzwUlNUA2qlrO6fIL6Xm33rOzd0htUhBP8dE60vVuF\nFNX7SWATGZnbcQP9EazuM8zcHpsu+pjxASkYcjRMsMEOln5Hf24WnbrmAeDB\nwbNd1cIQBHIRI4JdIbgzIRFJfJvmWC+VxR9oNeu+x6y/v3B3yxFhO8Z5XQiT\ni0YygRPk3xHWe7aLNjEUDkUDDBp9xb38NAf7/Tjd6t0waN2DSD0ytK4NC71B\nSNRj\r\n=I2mF\r\n-----END PGP SIGNATURE-----\r\n","size":3735,"noattachment":false,"key":"/web3-providers-http/-/web3-providers-http-1.5.0-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":"c3ef172cc1ad0ffbc1fea304d707684aa1be75b3","scripts":{"compile":"tsc -b tsconfig.json","dtslint":"dtslint --localTs ../../node_modules/typescript/lib types"},"_npmUser":{"name":"spacesailor","email":"signup@wyatt.email"},"repository":{"url":"https://github.com/ethereum/web3.js/tree/1.x/packages/web3-providers-http","type":"git"},"_npmVersion":"lerna/3.22.1/node@v14.16.0+x64 (linux)","description":"Module to handle web3 RPC connections over HTTP.","directories":{},"_nodeVersion":"14.16.0","dependencies":{"xhr2-cookies":"1.1.0","web3-core-helpers":"1.5.0-rc.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"dtslint":"^3.4.1","typescript":"^3.9.5"},"_npmOperationalInternal":{"tmp":"tmp/web3-providers-http_1.5.0-rc.1_1627120227447_0.17591298969309976","host":"s3://npm-registry-packages"},"publish_time":1627120227565,"_cnpm_publish_time":1627120227565,"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"}}