@cjdev/nataddr
TypeScript icon, indicating that this package has built-in type declarations

1.4.4 • Public • Published

CJ NAT Addresses

List of CJ NAT addresses suitable for source IP whitelisting.

Usage

In the Shell

npx @cjdev/nataddr

will display the list of nat IP addresses in the format <Address Type> <Address>.

As a Library

Install into your project: npm i @cjdev/nataddr

import * as nat from '@cjdev/nataddr';

// All CIDR blocks, with IP type property
console.log("all:", JSON.stringify(nat.all()));

// IPv4 CIDR blocks only, as strings
console.log("IPv4:", JSON.stringify(nat.v4()));

// IPv6 CIDR blocks only, as strings
console.log("IPv6:", JSON.stringify(nat.v6()));

Readme

Keywords

none

Package Sidebar

Install

npm i @cjdev/nataddr

Weekly Downloads

30

Version

1.4.4

License

ISC

Unpacked Size

11.8 kB

Total Files

12

Last publish

Collaborators

  • nicolasfont
  • jeegarshah
  • voidconcept
  • huoshengdi
  • mirceaned
  • gjwiley
  • jmwindsor
  • jeffrocan
  • emmulator
  • seriousfools
  • cezgit
  • joshhidley
  • kadinvanvalin
  • murradha