@jdebetaz/icloud-private-relay
v1.2.1
Published
NodeJS package that detects iCloud Private Relay IP address based on ICloud's [egress ip range](https://mask-api.icloud.com/egress-ip-ranges.csv) list. More information about how to prepare your network for iCloud Private Relay can be found [here](https:/
Downloads
3
Maintainers
Readme
node-icloud-private-relay
NodeJS package that detects iCloud Private Relay IP address based on ICloud's egress ip range list. More information about how to prepare your network for iCloud Private Relay can be found here.
Installation
npm i @jdebetaz/icloud-private-relay
Usage
Now support IPv4 & IPv6
const Relay = require('@jdebetaz/icloud-private-relay')
async function getSample () {
let isICloudPrivateRelayAddress = await Relay.isICloudPrivateRelayAddress("172.224.224.72")
console.log(isICloudPrivateRelayAddress) // Returns information about the IP
let isNotICloudPrivateRelayAddress = await Relay.isICloudPrivateRelayAddress("192.168.1.1")
console.log(isNotICloudPrivateRelayAddress) // false
}
getSample()