{"_id":"http-https-agent","_rev":"3509418","name":"http-https-agent","description":"Get either a HTTP or HTTPS agent depending on protocol","dist-tags":{"latest":"1.0.2"},"maintainers":[{"name":"kesla","email":""}],"time":{"modified":"2024-08-27T20:21:57.000Z","created":"2016-07-14T22:19:49.841Z","1.0.2":"2016-07-14T22:33:04.302Z","1.0.1":"2016-07-14T22:24:31.429Z","1.0.0":"2016-07-14T22:19:49.841Z"},"users":{},"author":{"name":"David Björklund","email":"david.bjorklund@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/kesla/http-https-agent.git"},"versions":{"1.0.2":{"name":"http-https-agent","version":"1.0.2","description":"Get either a HTTP or HTTPS agent depending on protocol","main":"dist/index.js","scripts":{"test":"xo","build":"rm -rf dist && mkdir -p dist && babel lib --out-dir dist","watch":"rm -rf dist && mkdir -p dist && babel -w lib --out-dir dist","prepublish":"npm run build","posttest":"readme package.json > readme.md"},"repository":{"type":"git","url":"git+https://github.com/kesla/http-https-agent.git"},"author":{"name":"David Björklund","email":"david.bjorklund@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/kesla/http-https-agent/issues"},"homepage":"https://github.com/kesla/http-https-agent#readme","devDependencies":{"babel-cli":"^6.10.1","babel-preset-es2015-node4":"2.1.0","package-json-to-readme":"^1.5.1","xo":"^0.16.0"},"dependencies":{"lodash.startswith":"^4.1.0"},"xo":{"esnext":true,"space":true},"gitHead":"bc7a15afb894b488297170be018a1ea3e829192b","_id":"http-https-agent@1.0.2","_shasum":"38d014b4ede65b827ff75d170f16aac377f6e034","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"kesla","email":"david.bjorklund@gmail.com"},"dist":{"shasum":"38d014b4ede65b827ff75d170f16aac377f6e034","size":2337,"noattachment":false,"key":"/http-https-agent/-/http-https-agent-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/http-https-agent/download/http-https-agent-1.0.2.tgz"},"maintainers":[{"name":"kesla","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/http-https-agent-1.0.2.tgz_1468535581795_0.7563253282569349"},"directories":{},"_cnpmcore_publish_time":"2021-12-20T01:37:25.409Z","publish_time":1468535584302,"_cnpm_publish_time":1468535584302},"1.0.1":{"name":"http-https-agent","version":"1.0.1","description":"Get either a HTTP or HTTPS agent depending on protocol","main":"dist/index.js","scripts":{"test":"xo","build":"rm -rf dist && mkdir -p dist && babel lib --out-dir dist","watch":"rm -rf dist && mkdir -p dist && babel -w lib --out-dir dist","prepublish":"npm run build","posttest":"readme package.json > readme.md"},"repository":{"type":"git","url":"git+https://github.com/kesla/http-https-agent.git"},"author":{"name":"David Björklund","email":"david.bjorklund@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/kesla/http-https-agent/issues"},"homepage":"https://github.com/kesla/http-https-agent#readme","devDependencies":{"babel-cli":"^6.10.1","package-json-to-readme":"^1.5.1","xo":"^0.16.0"},"dependencies":{"lodash.startswith":"^4.1.0"},"xo":{"esnext":true,"space":true},"gitHead":"29362f09f654829fc7f9ab845871959442d777d2","_id":"http-https-agent@1.0.1","_shasum":"cb4369fddb5baee677a0d570d4a52e9e50934e84","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"kesla","email":"david.bjorklund@gmail.com"},"dist":{"shasum":"cb4369fddb5baee677a0d570d4a52e9e50934e84","size":2174,"noattachment":false,"key":"/http-https-agent/-/http-https-agent-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/http-https-agent/download/http-https-agent-1.0.1.tgz"},"maintainers":[{"name":"kesla","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/http-https-agent-1.0.1.tgz_1468535068816_0.8468290963210166"},"directories":{},"_cnpmcore_publish_time":"2021-12-20T01:37:24.553Z","publish_time":1468535071429,"_cnpm_publish_time":1468535071429},"1.0.0":{"name":"http-https-agent","version":"1.0.0","description":"Get either a HTTP or HTTPS agent depending on protocol","main":"dist/index.js","scripts":{"test":"xo","build":"rm -rf dist && mkdir -p dist && babel lib --out-dir dist","watch":"rm -rf dist && mkdir -p dist && babel -w lib --out-dir dist","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/kesla/http-https-agent.git"},"author":{"name":"David Björklund","email":"david.bjorklund@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/kesla/http-https-agent/issues"},"homepage":"https://github.com/kesla/http-https-agent#readme","devDependencies":{"babel-cli":"^6.10.1","xo":"^0.16.0"},"dependencies":{"lodash.startswith":"^4.1.0"},"xo":{"esnext":true,"space":true},"gitHead":"ac3be95460e4074508f2cff58ffb66da275f5f45","_id":"http-https-agent@1.0.0","_shasum":"d37ace6e87d2eee9490ed917bc2fd3d584a27932","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"kesla","email":"david.bjorklund@gmail.com"},"dist":{"shasum":"d37ace6e87d2eee9490ed917bc2fd3d584a27932","size":1618,"noattachment":false,"key":"/http-https-agent/-/http-https-agent-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/http-https-agent/download/http-https-agent-1.0.0.tgz"},"maintainers":[{"name":"kesla","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/http-https-agent-1.0.0.tgz_1468534787259_0.05381861049681902"},"directories":{},"_cnpmcore_publish_time":"2021-12-20T01:37:23.690Z","publish_time":1468534789841,"_cnpm_publish_time":1468534789841}},"readme":"# http-https-agent \n\nGet either a HTTP or HTTPS agent depending on protocol\n\n## Installation\n\nDownload node at [nodejs.org](http://nodejs.org) and install it, if you haven't already.\n\n```sh\nnpm install http-https-agent --save\n```\n\n## Usage\n\n```js\n/* eslint-disable no-unused-vars */\n/* eslint-disable import/no-extraneous-dependencies */\nimport httpHttpsAgent from 'http-https-agent';\n\nconst getAgent = httpHttpsAgent({\n  keepAlive: true\n});\n\nconst httpsAgent = getAgent('https://google.com');\nconst httpAgent = getAgent('http://google.com');\n\n```\n\n## Tests\n\n```sh\nnpm install\nnpm test\n```\n\n## Dependencies\n\n- [lodash.startswith](): The lodash method `_.startsWith` exported as a module.\n\n## Dev Dependencies\n\n- [babel-cli](https://github.com/babel/babel/tree/master/packages): Babel command line.\n- [package-json-to-readme](https://github.com/zeke/package-json-to-readme): Generate a README.md from package.json contents\n- [xo](https://github.com/sindresorhus/xo): JavaScript happiness style linter ❤️\n\n\n## License\n\nMIT\n\n_Generated by [package-json-to-readme](https://github.com/zeke/package-json-to-readme)_\n","_attachments":{},"homepage":"https://github.com/kesla/http-https-agent#readme","bugs":{"url":"https://github.com/kesla/http-https-agent/issues"},"license":"MIT"}