@cldn/ip - v1.0.4
    Preparing search index...

    Class Network

    A network that can contain multiple subnets

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    BOGON: Network = ...

    Reserved subnets

    Methods

    • Check if subnet is in this network

      Parameters

      • cidr: string

        CIDR notation of the subnet to check

      Returns boolean

    • Remove a subnet from this network

      Parameters

      • cidr: string

        CIDR notation of the subnet to remove

      Returns void

    • Get the number of addresses in this network

      Returns bigint