Refactoring tool detection, work in progress
This commit is contained in:
@ -6,6 +6,7 @@
|
||||
const systemRoot = process.env.SystemRoot || 'C:\\Windows';
|
||||
const tool = systemRoot + '\\System32\\netsh.exe';
|
||||
const cmdLine = tool + ' wlan show networks mode=Bssid';
|
||||
const detector = tool + ' -h';
|
||||
|
||||
/**
|
||||
* Parsing netnsh output. Unfortunately netsh supplies the network information
|
||||
@ -90,5 +91,6 @@ function parseOutput(str, callback) {
|
||||
module.exports = {
|
||||
parseOutput: parseOutput,
|
||||
cmdLine : cmdLine,
|
||||
detector : detector,
|
||||
tool : tool
|
||||
};
|
||||
|
Reference in New Issue
Block a user