Get either a HTTP or HTTPS agent depending on protocol
npm install http-https-agentGet either a HTTP or HTTPS agent depending on protocol
Download node at nodejs.org and install it, if you haven't already.
``sh`
npm install http-https-agent --save
`js
/ eslint-disable no-unused-vars /
/ eslint-disable import/no-extraneous-dependencies /
import httpHttpsAgent from 'http-https-agent';
const getAgent = httpHttpsAgent({
keepAlive: true
});
const httpsAgent = getAgent('https://google.com');
const httpAgent = getAgent('http://google.com');
`
`sh`
npm install
npm test
- [lodash.startswith](): The lodash method _.startsWith` exported as a module.
- babel-cli: Babel command line.
- package-json-to-readme: Generate a README.md from package.json contents
- xo: JavaScript happiness style linter ❤️
MIT
_Generated by package-json-to-readme_