first commit

This commit is contained in:
s.golasch
2023-08-01 13:49:46 +02:00
commit 1fc239fd54
20238 changed files with 3112246 additions and 0 deletions

16
build/node_modules/macaddress/lib/macosx.js generated vendored Normal file
View File

@@ -0,0 +1,16 @@
var exec = require('child_process').exec;
module.exports = function (iface, callback) {
exec("networksetup -getmacaddress " + iface, function (err, out) {
if (err) {
callback(err, null);
return;
}
var match = /[a-f0-9]{2}(:[a-f0-9]{2}){5}/.exec(out.toLowerCase());
if (!match) {
callback("did not find a mac address", null);
return;
}
callback(null, match[0]);
});
};