{"name":"web3-providers-http","version":"1.3.6-rc.2","license":"LGPL-3.0","_id":"web3-providers-http@1.3.6-rc.2","maintainers":[{"name":"ralxz","email":"ryan@ryanio.com"},{"name":"spacesailor","email":"signup@wyatt.email"},{"name":"gregthegreek","email":"gregorymarkou@gmail.com"}],"dist":{"shasum":"7d62d71eee5456649231748e92153edbdf0ee91f","tarball":"http://registry-npm.ywwl.com/web3-providers-http/download/web3-providers-http-1.3.6-rc.2.tgz","fileCount":10,"integrity":"sha512-zf9VbJw9xnVBzJ2vwitycJ/5ONbgZ93bJK3izqUvbNAZxPNY0ChCSpl5OzKG8aQS9xDloHoiYIzMna4r87L8hA==","signatures":[{"sig":"MEQCIESjaCUC4qjqzZSLWxjaxyPCbBSLYTHdKS/yLhlPP8jZAiAQAtB4cMxzlTIlo161lkWmiP0vZZy6zqqNfow41PgOQg==","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\nwsFcBAEBCAAQBQJgnY32CRA9TVsSAnZWagAAjosP/RlQ7VpN5V3wP7P90KvA\nPJhMK515Qz7otytFmZWUremaiexOsOSM4OnHxwxS0kMG6+aioFyETWbH0Ncw\nEYd/vme8ihLLH0BFErk2vX6PPZDZtQ2YB/1YqA5VybOzgTZxaVSDKwD6HdnK\n3tFf4eKkbRKUPiGkHTCZ2nPsFU+8hhwWqi8sGS1B5IU2OBYvoJUkFscqJgBh\nGLu9bT2QgsFFpPP0AQHat1DbbzVfwF5gs76+Hq5D1a+hUZ4dd0SZyMgWgjsQ\nvOahmT/OBDJ34Yyqgl4yqklHupXXaXhhfioQbMWo1DHEz3TIIV5opYSZj88I\nLZBNFtJnSKzq5Q3pvfVyMkGT4tH4Ktx6QdI4rkk4wc6yxACBfXVgwadsGlEH\nfJ4lbJwra9Nc6uMH/dtg43oQZ2Lq4sdadQnD5MHTS3oPoQ0iX9y+Tqe0iPSs\nhHLeD6dnR/1dCuuw1hb0DmPmTuriQWIMiJoDvt7v3cXOXYs18xIB2sXVRmcd\nacLwdWY/UYH441ty/A350ULsxOOpY+6/907ukg7LzQMwES36BMmF+uiu9OrL\nU2BVIWNQvdR/a/DMykIOFBWNrSz5iiT0yy8z73I7Ic9ITj55mR2z7URFm9O0\neqrWx397Lm5PMhovynrWGHPjmFN5OrFDMxCwcBp58An5ihhlbovQKQZ60Vvs\nPgYZ\r\n=ailY\r\n-----END PGP SIGNATURE-----\r\n","size":3738,"noattachment":false,"key":"/web3-providers-http/-/web3-providers-http-1.3.6-rc.2.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":"9a2745ef5b616158ae820b434377ce9c49b45d6f","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.3.6-rc.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"dtslint":"^3.4.1","typescript":"^3.9.5"},"_npmOperationalInternal":{"tmp":"tmp/web3-providers-http_1.3.6-rc.2_1620938230006_0.7377296704112342","host":"s3://npm-registry-packages"},"publish_time":1620938230112,"_cnpm_publish_time":1620938230112,"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"}}