We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 444a4cd + fdb030b commit 4f6b0b8Copy full SHA for 4f6b0b8
impl/windows/index.js
@@ -1,10 +1,12 @@
1
-const execa = require('execa')
+const childProcess = require('child_process')
2
const path = require('path')
3
+const util = require('util')
4
5
+const execFile = util.promisify(childProcess.execFile)
6
const executablePath = path.join(__dirname, 'adjust_get_current_system_volume_vista_plus.exe')
7
8
async function runProgram (...args) {
- return (await execa(executablePath, args)).stdout
9
+ return (await execFile(executablePath, args)).stdout
10
}
11
12
async function getVolumeInfo () {
0 commit comments