MCPcopy
hub / github.com/vitejs/vite / execAsync

Function execAsync

packages/vite/src/node/server/openBrowser.ts:139–149  ·  packages/vite/src/node/server/openBrowser.ts::execAsync
(command: string, options?: ExecOptions)

Source from the content-addressed store, hash-verified

137}
138
139function execAsync(command: string, options?: ExecOptions): Promise<string> {
140 return new Promise((resolve, reject) => {
141 exec(command, options, (error, stdout) => {
142 if (error) {
143 reject(error)
144 } else {
145 resolve(stdout.toString())
146 }
147 })
148 })
149}

Callers 1

startBrowserProcessFunction · 0.85

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected