Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/react/create-react-app
/ isUsingYarn
Function
isUsingYarn
packages/create-react-app/createReactApp.js:52–54 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
50
const
packageJson = require(
'./package.json'
);
51
52
function
isUsingYarn() {
53
return
(process.env.npm_config_user_agent ||
''
).indexOf(
'yarn'
) === 0;
54
}
55
56
let
projectName;
57
Callers
1
init
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected