MCPcopy
hub / github.com/react/create-react-app / isProcessAReactApp

Function isProcessAReactApp

packages/react-dev-utils/getProcessForPort.js:24–26  ·  view source on GitHub ↗
(processCommand)

Source from the content-addressed store, hash-verified

22};
23
24function isProcessAReactApp(processCommand) {
25 return /^node .*react-scripts\/scripts\/start\.js\s?$/.test(processCommand);
26}
27
28function getProcessIdOnPort(port) {
29 return execFileSync('lsof', ['-i:' + port, '-P', '-t', '-sTCP:LISTEN'], execOptions)

Callers 1

getProcessCommandFunction · 0.85

Calls 1

testMethod · 0.80

Tested by

no test coverage detected