MCPcopy Create free account
hub / github.com/freeCodeCamp/freeCodeCamp / fromLong

Function fromLong

client/src/components/formHelpers/form-ip-utils.ts:70–72  ·  view source on GitHub ↗
(ipl: number)

Source from the content-addressed store, hash-verified

68}
69
70function fromLong(ipl: number) {
71 return `${ipl >>> 24}.${(ipl >> 16) & 255}.${(ipl >> 8) & 255}.${ipl & 255}`;
72}
73
74const ipv6Regex =
75 /^(::)?(((\d{1,3}\.){3}(\d{1,3}){1})?([0-9a-f]){0,4}:{0,2}){1,8}(::)?$/i;

Callers 2

isPrivateFunction · 0.85
isLoopbackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected