{"name":"web3-providers-http","version":"1.3.0-rc.0","license":"LGPL-3.0","_id":"web3-providers-http@1.3.0-rc.0","maintainers":[{"name":"holgerd77","email":"Holger.Drewes@gmail.com"},{"name":"ralxz","email":"ryan@ryanio.com"}],"dist":{"shasum":"b0f27ac7bb64203e88f26942affab203e2a7409f","tarball":"http://registry-npm.ywwl.com/web3-providers-http/download/web3-providers-http-1.3.0-rc.0.tgz","fileCount":10,"integrity":"sha512-z71Bkufflw68xNCV4B/g6HRK98QcUZCDxx0LCMhNfrMnk1CcF/2ou/Eg8hHsHBs9cYSuo/CamfK3dFdOHu5XoQ==","signatures":[{"sig":"MEYCIQDiqA3IzWXaom93bjbmdat8yDccryoWXUYPSsXWFliMLAIhALtuPeAHoRTG2CaSneiYKCBTYSd1fKK5qLCG3Z9UwRIC","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15199,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUARoCRA9TVsSAnZWagAAjp8P/1cg2W0KGYRbp9il4y39\na/UcyTKSaWMU/9kJplyYQZO2ROC+G2UXdyFkNqcFhsFRtPIiEH8C9XhEOM8W\nhjrhXTpeCZ0erK26MN8D32FYjdbZsUH69oHarbDnSA6VD3TMc70LmsWFkGBW\n/7kjh3SjIt6vEkCkoMTh4Z3hWgVGVnzOBS1lB/CTI94KH+f25k1j89n/P5pJ\nQ7NLgMWcagU/ITQRLFxf+j/FSNo1e9OMcY1IKIV4bkv/HE9ipL2nfaGiuHb1\nYgK4XOd6cHvwD0lBsYEcrF1wNVp1QF1D5n1prirUrRrM6YilTKDIJgJxFCyk\n6sbwMBCaRLOl2ONH00R+64rLBWVTzBW3HzI+Czr4BvszpHPiclsx4kREbufz\nKDEqV9rf1Nmo5BztR1c9Wn8CflaGufk5N668va1JxSGKTgkd5N8GXdoX0Zcj\nF6PT/2+luuMQzHygwrW3ZgI+8AqxS2BCNVbx1onZ6NRJ3wN2Z6Nu8coekTXW\ngGGtAh/5yhjgE347vlTM1mLDfgx7mlssA6BwhKRtO5uRww1y1zmU/02GsjnF\n+aGQ7EV3jzaLGzO0VQ36hIHJWtYIe7TeIQ71f2Z6/4K/Wqrvkb0pi0glTWn+\nDUw6uJY3cyr2GKHoR1qnMM0v1ISY2yC22IbfsXtDu9wbF4ZvJ7ELUK88zJoX\nNWCK\r\n=OSJn\r\n-----END PGP SIGNATURE-----\r\n","size":3737,"noattachment":false,"key":"/web3-providers-http/-/web3-providers-http-1.3.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] [![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":"83c9f65c7cb3b4f4532f890ec5a3608fd1879e35","scripts":{"tsc":"tsc -b tsconfig.json","dtslint":"dtslint --localTs ../../node_modules/typescript/lib types"},"_npmUser":{"name":"gregthegreek","email":"gregorymarkou@gmail.com"},"repository":{"url":"https://github.com/ethereum/web3.js/tree/1.x/packages/web3-providers-http","type":"git"},"_npmVersion":"lerna/3.22.0/node@v12.16.1+x64 (linux)","description":"Module to handle web3 RPC connections over HTTP.","directories":{},"_nodeVersion":"12.16.1","dependencies":{"xhr2-cookies":"1.1.0","web3-core-helpers":"1.3.0-rc.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"dtslint":"^3.4.1","typescript":"^3.9.5"},"_npmOperationalInternal":{"tmp":"tmp/web3-providers-http_1.3.0-rc.0_1599079528260_0.13746940620417303","host":"s3://npm-registry-packages"},"publish_time":1599079528373,"_cnpm_publish_time":1599079528373,"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"}}