$ cnpm install http-https-agent
Get either a HTTP or HTTPS agent depending on protocol
Download node at nodejs.org and install it, if you haven't already.
npm install http-https-agent --save
/* 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');
npm install
npm test
_.startsWith exported as a module.MIT
Generated by package-json-to-readme
Copyright 2013 - present © cnpmjs.org | Home |