Refactoring tool detection, work in progress
This commit is contained in:
@ -8,6 +8,8 @@ const _ = require('lodash');
|
||||
// when the default location, /usr/bin/ is not in the PATH!). GitHub issue #1
|
||||
const tool = 'iwlist';
|
||||
const cmdLine = tool + ' scan';
|
||||
const detector = tool + ' --help';
|
||||
|
||||
|
||||
const macRegex = /([0-9a-zA-Z]{1}[0-9a-zA-Z]{1}[:]{1}){5}[0-9a-zA-Z]{1}[0-9a-zA-Z]{1}/;
|
||||
const cellRegex = /Cell [0-9]{2,} - Address:/;
|
||||
@ -81,5 +83,6 @@ function parseOutput(str, callback) {
|
||||
module.exports = {
|
||||
parseOutput: parseOutput,
|
||||
cmdLine : cmdLine,
|
||||
detector : detector,
|
||||
tool : tool
|
||||
};
|
||||
|
Reference in New Issue
Block a user