tiny-server-essentials
Version:
A good utility toolkit to unify Express v5 and Socket.IO v4 into a seamless development experience with modular helpers, server wrappers, and WebSocket tools.
11 lines • 479 B
text/typescript
/**
* Extracts a normalized list of IP addresses from userIp (from req.ip or req.ips).
* Handles IPv4, IPv6, and IPv4-mapped IPv6 addresses.
*
* @param {string|string[]|null|undefined} userIp - The user ip.
* @returns {string[]} A list of valid and normalized IPs.
*/
export function extractIpList(userIp: string | string[] | null | undefined): string[];
export { micVolumeFilter };
import { micVolumeFilter } from './client/Utils.mjs';
//# sourceMappingURL=Utils.d.mts.map