Skip to content

parseEui

parseEui(text): BitAddress

Defined in: packages/net-address/src/eui/parse-eui.ts:50

Parses an EUI-48 or EUI-64 in colon, hyphen, Cisco dotted or bare notation.

The width comes from how many octets were written, which is the only place it can come from — a bare 1a2b3c is a 24-bit OUI, not a short MAC address, and is rejected here rather than zero-extended.

string

BitAddress

NetAddressSyntaxError When text is not six or eight octets in one consistent notation.