UNPKG

foxts

Version:

Opinionated collection of common TypeScript utils by @SukkaW

7 lines (5 loc) 211 B
/** * If you know the input is probably an IP, you can use this function to quickly determine the version of the IP */ declare function fastIpVersion(probablyIp: string): 4 | 6 | 0; export { fastIpVersion };