MCPcopy
hub / github.com/remy/nodemon / parse

Function parse

test/cli/parse.test.js:16–32  ·  view source on GitHub ↗
(cmd)

Source from the content-addressed store, hash-verified

14}
15
16function parse(cmd) {
17 var parsed = cli.parse(cmd);
18
19 // mirrored based on /lib/config/load.js:36
20 parsed.execOptions = exec({
21 script: parsed.script,
22 exec: parsed.exec,
23 args: parsed.args,
24 scriptPosition: parsed.scriptPosition,
25 nodeArgs: parsed.nodeArgs,
26 ext: parsed.ext,
27 env: parsed.env
28 });
29
30 return parsed;
31 return mutateExecOptions(cli.parse(cmd));
32}
33
34function commandToString(command) {
35 return utils.stringify(command.executable, command.args);

Callers 2

parse.test.jsFile · 0.70
exec.test.jsFile · 0.70

Calls 2

execFunction · 0.85
mutateExecOptionsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…