• Version 2.0.4
  • Published
  • 223 kB
  • 2 dependencies
  • BSD-2-Clause license


npm i range_check
yarn add range_check
pnpm add range_check


This is a simple module to validate IP address, check ip address version, check if ip is within a range.



function displayIP

displayIP: (addr: string) => any;

    function inRange

    inRange: (addr: string, range: string | string[]) => any;

      function isIP

      isIP: (addr: string) => boolean;

        function isRange

        isRange: (range: string) => boolean;

          function isV4

          isV4: (addr: string) => boolean;

            function isV6

            isV6: (addr: string) => boolean;

              function searchIP

              searchIP: (addr: string) => any;

                function storeIP

                storeIP: (addr: string) => any;

                  function version

                  version: (addr: string) => number;

                    Package Files (1)

                    Dependencies (2)

                    Dev Dependencies (34)

                    Peer Dependencies (0)

                    No peer dependencies.


                    To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                    You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/range_check.

                    • Markdown
                    • HTML
                      <a href="https://www.jsdocs.io/package/range_check"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>