Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gidw/mac-address-util

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gidw/mac-address-util - npm Package Compare versions

Comparing version 0.0.1 to 1.0.0

index.d.ts

56

index.js

@@ -13,5 +13,6 @@ 'use strict';

* @param {number} macNum
* @param {boolean} [debug]
* @returns {string}
*/
convertToMac: function convertToMac (macNum) {
convertToMac: function convertToMac (macNum, debug) {

@@ -45,3 +46,6 @@ var macStr, macStrLength, macStrLengthDiff, completeMacStr;

console.warn('convertToMac - Invalid MAC number length');
if (debug) {
console.warn('convertToMac - Invalid MAC number length');
}
}

@@ -62,6 +66,9 @@

console.warn(
'convertToMac - Invalid complete MAC string',
completeMacStr
);
if (debug) {
console.warn(
'convertToMac - Invalid complete MAC string',
completeMacStr
);
}
}

@@ -71,3 +78,6 @@

console.warn('convertToMac - Invalid MAC number');
if (debug) {
console.warn('convertToMac - Invalid MAC number');
}
}

@@ -82,5 +92,6 @@

* @param {string} macStr
* @param {boolean} [debug]
* @returns {number}
*/
convertToNumber: function convertToNumber (macStr) {
convertToNumber: function convertToNumber (macStr, debug) {

@@ -104,6 +115,9 @@ var splits, length, macHexStr;

console.warn(
'convertToNumber - Invalid MAC address' +
' - Unknown separator'
);
if (debug) {
console.warn(
'convertToNumber - Invalid MAC address' +
' - Unknown separator'
);
}
}

@@ -123,7 +137,10 @@

console.warn(
'convertToNumber - Invalid MAC address' +
' - Invalid split',
splits
);
if (debug) {
console.warn(
'convertToNumber - Invalid MAC address' +
' - Invalid split',
splits
);
}
}

@@ -134,3 +151,6 @@ }

console.warn('convertToNumber - Invalid MAC address');
if (debug) {
console.warn('convertToNumber - Invalid MAC address');
}
}

@@ -137,0 +157,0 @@

{
"name": "@gidw/mac-address-util",
"version": "0.0.1",
"version": "1.0.0",
"description": "Utility functions for working with MAC addresses",
"author": "Gilles De Waele",
"keywords": [
"mac",
"convert",
"MAC address",
"utility"
],
"license": "MIT",
"main": "index.js",
"types": "index.d.ts",
"dependencies": {},

@@ -9,0 +16,0 @@ "devDependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc