MCPcopy Create free account
hub / github.com/Effect-TS/effect / formatMacAddress

Function formatMacAddress

packages/effect/src/net/NetAddress.ts:1278–1279  ·  view source on GitHub ↗
(self: MacAddress)

Source from the content-addressed store, hash-verified

1276 * @since 4.0.0
1277 */
1278export const formatMacAddress = (self: MacAddress): string =>
1279 Array.from(getMacBytes(self), (byte) => byte.toString(16).padStart(2, "0")).join(":")
1280
1281/**
1282 * Returns `true` when the MAC address is the all-ones broadcast address.

Callers 1

toStringFunction · 0.85

Calls 4

getMacBytesFunction · 0.85
fromMethod · 0.80
toStringMethod · 0.65
joinMethod · 0.45

Tested by

no test coverage detected