{"_id":"@danielsmilo/web3providershttpdaniel","_rev":"1-8de58517f7532791a4845c211c746001","name":"@danielsmilo/web3providershttpdaniel","dist-tags":{"latest":"1.0.0-beta.42"},"versions":{"1.0.0-beta.42":{"name":"@danielsmilo/web3providershttpdaniel","namespace":"ethereum","version":"1.0.0-beta.42","description":"Module to handle web3 RPC connections over HTTP.","repository":{"type":"git","url":"https://github.com/ethereum/web3.js/tree/master/packages/web3-providers-http"},"license":"LGPL-3.0","main":"src/index.js","dependencies":{"@danielsmilo/web3corehelpersdaniel":"1.0.0-beta.42","xhr2-cookies":"1.1.0"},"_id":"@danielsmilo/web3providershttpdaniel@1.0.0-beta.42","_npmVersion":"5.6.0","_nodeVersion":"8.11.2","_npmUser":{"name":"danielsmilo","email":"daniel@smilo.io"},"dist":{"integrity":"sha512-NMqIHVYHDvyykcdByQ6Yh+IdUyzyhpy4Lz+Isx+YDS6Ib7hJF+Aw8RXMRIuCAvOOaCBT29zOzSRxGmtgQ2/6bw==","shasum":"fa8f7c4fdc52ea7e7c5da5b7e619dae409711f16","tarball":"https://registry.npmjs.org/@danielsmilo/web3providershttpdaniel/-/web3providershttpdaniel-1.0.0-beta.42.tgz","fileCount":3,"unpackedSize":4755,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcb7jaCRA9TVsSAnZWagAAKjwP/2cdNW9lDc0NkdsZ17wl\nIp+Fb1vpxj4tvQVt3PqPo1DZrMQffrcBrKKJsfhdJQqyCWY8lsFv92zjj0wr\nOqsJ+w0UBkgCr3K3mAr4sgTYk8OsEFi72NChdEpT8c14xzlWixEDiyOqVDug\n11EeIZASpcMUp6oQZkqKqjLa465ZsBb/qY/UvtOaOCP5Wqbsb44XT4owytGv\ndP1NiGPrZncLaGqbIQFZYBG1DnaKI5nci6vXZHHt7/x7BzSQzLiLFd0BCPj8\npcrn/r26ZieoJ9aCyJ0ZFeeO8yJj9ysRewBgqs2iTPu1U8/3ye5V1HfPCM1c\niyZmi6clA0J7dWfSNeZimP3gX8K8srqOdn2qdvwL7kzJq0xA0mwVvE2SZVRT\nvvsMk2U2TCyw7dx7AyA+cg0j57FgxR0fDsAMYeLJBahgY+bBGOzt/HkAMpue\nWMQw+YBtL8Ib0yvex4VrnhcxSNojJtFSw24DQcFw5rSztxC4I89jZTdkCHLF\noTEmNVM8DP5ZRJtrOwR33HlvQQ/ct4eudFXfmdbh+NC5nkAGm6+kpy0H8/7R\nBI67QxMhFR9svAzuvDhjT6ikByJEy11sgHLAZLjqWH8bx9uvHa6FCZmVUPLZ\nN9qh5SMyZZjDWXOUfAt/v8tJ8iddntlx5evzbxP3jiizfMpfnNThhBgkOy/b\nqwnr\r\n=dLPQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH/7nxN4OXQIx0I27V9+HGBeOSlnx/UZCfUdIjyyzvt5AiAEawGaEn/3/S1ezNuqCimO+iopdiInzCQ9V/7HBgrmwA=="}]},"maintainers":[{"name":"danielsmilo","email":"daniel@smilo.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web3providershttpdaniel_1.0.0-beta.42_1550825690079_0.30310310072988567"},"_hasShrinkwrap":false}},"time":{"created":"2019-02-22T08:54:49.885Z","1.0.0-beta.42":"2019-02-22T08:54:50.165Z","modified":"2022-04-05T02:41:30.993Z"},"maintainers":[{"name":"danielsmilo","email":"daniel@smilo.io"}],"description":"Module to handle web3 RPC connections over HTTP.","repository":{"type":"git","url":"https://github.com/ethereum/web3.js/tree/master/packages/web3-providers-http"},"license":"LGPL-3.0","readme":"# web3-providers-http\n\n*This is a sub package of [web3.js][repo]*\n\nThis is a HTTP provider for [web3.js][repo].   \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### In the Browser\n\nBuild running the following in the [web3.js][repo] repository:\n\n```bash\nnpm run-script build-all\n```\n\nThen include `dist/web3-providers-http.js` in your html file.\nThis will expose the `Web3HttpProvider` object on the window object.\n\n\n## Usage\n\n```js\n// in node.js\nvar Web3HttpProvider = require('web3-providers-http');\n\nvar options = {\n    timeout: 20000, // milliseconds,\n    headers: [{name: 'Access-Control-Allow-Origin', value: '*'},{...}]\n};\nvar http = new Web3HttpProvider('http://localhost:8545', options);\n```\n\n\n[docs]: http://web3js.readthedocs.io/en/1.0/\n[repo]: https://github.com/ethereum/web3.js\n\n\n","readmeFilename":"README.md"}