mac_address_parse.js 195 B

12345678
  1. const zpad = require('zpad')
  2. module.exports = {
  3. pad_zeros: (macAddress) => {
  4. if (macAddress) { return macAddress.split(':').map((hex) => zpad(hex)).join(':') }
  5. return macAddress
  6. }
  7. }