I'm trying to get the client side mac address, and I tried to use node.js inner module os.networkInterfaces() to get mac address. I can compile sucessfully but I always got empty object. And I tried the both ways below:
import {networkInterfaces} from 'os';
...
const mac = networkInterfaces();
or :
const os = require('os');
const mac = os.networkInterfaces();
Does any one have similar experience? Thank you!