MCPcopy 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

50const packageJson = require('./package.json');
51
52function isUsingYarn() {
53 return (process.env.npm_config_user_agent || '').indexOf('yarn') === 0;
54}
55
56let projectName;
57

Callers 1

initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected