MCPcopy Index your code
hub / github.com/react/create-react-app / isTerminalEditor

Function isTerminalEditor

packages/react-dev-utils/launchEditor.js:16–24  ·  view source on GitHub ↗
(editor)

Source from the content-addressed store, hash-verified

14const shellQuote = require('shell-quote');
15
16function isTerminalEditor(editor) {
17 switch (editor) {
18 case 'vim':
19 case 'emacs':
20 case 'nano':
21 return true;
22 }
23 return false;
24}
25
26// Map from full process name to binary that starts the process
27// We can't just re-use full process name, because it will spawn a new instance

Callers 1

launchEditorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected