MCPcopy Create free account
hub / github.com/react/create-react-app / getProxy

Function getProxy

packages/create-react-app/createReactApp.js:978–990  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

976}
977
978function getProxy() {
979 if (process.env.https_proxy) {
980 return process.env.https_proxy;
981 } else {
982 try {
983 // Trying to read https-proxy from .npmrc
984 let httpsProxy = execSync('npm config get https-proxy').toString().trim();
985 return httpsProxy !== 'null' ? httpsProxy : undefined;
986 } catch (e) {
987 return;
988 }
989 }
990}
991
992// See https://github.com/facebook/create-react-app/pull/3355
993function checkThatNpmCanReadCwd() {

Callers 1

checkIfOnlineFunction · 0.85

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected