Refactoring tool detection, work in progress
This commit is contained in:
@ -5,6 +5,7 @@
|
||||
|
||||
const tool = '/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport';
|
||||
const cmdLine = tool + ' -s';
|
||||
const detector = tool + ' -getInfo';
|
||||
|
||||
const macRegex = /([0-9a-zA-Z]{1}[0-9a-zA-Z]{1}[:]{1}){5}[0-9a-zA-Z]{1}[0-9a-zA-Z]{1}/;
|
||||
/**
|
||||
@ -45,5 +46,6 @@ function parseOutput(str, callback) {
|
||||
module.exports = {
|
||||
parseOutput: parseOutput,
|
||||
cmdLine : cmdLine,
|
||||
detector : detector,
|
||||
tool : tool
|
||||
};
|
||||
|
Reference in New Issue
Block a user