@jdebetaz/icloud-private-relay

1.2.1 • Public • Published

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()

Package Sidebar

Install

npm i @jdebetaz/icloud-private-relay

Weekly Downloads

0

Version

1.2.1

License

ISC

Unpacked Size

12.7 kB

Total Files

8

Last publish

Collaborators

  • jdebetaz