MCPcopy
hub / github.com/motdotla/dotenv / spawn

Function spawn

tests/test-config-cli.js:6–22  ·  view source on GitHub ↗
(cmd, options = {})

Source from the content-addressed store, hash-verified

4const t = require('tap')
5
6function spawn (cmd, options = {}) {
7 const { stdout } = cp.spawnSync(
8 process.argv[0], // node binary
9 cmd,
10 Object.assign(
11 {},
12 {
13 cwd: path.resolve(__dirname, '..'),
14 timeout: 5000,
15 encoding: 'utf8'
16 },
17 options
18 )
19 )
20
21 return stdout
22}
23
24t.plan(3)
25

Callers 1

test-config-cli.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…