1.0.8 • Published 2 months ago

net-validations v1.0.8

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
2 months ago

net-validations

Utility to validate network-related input fields

Installation

npm install net-validations

Example

This utility contains a series of functions raising errors in case their input is not valid.

validateAS("onions");
// will throw Error("The Autonomous System number format is not valid. It must be an integer.")

validateASpath([2914, 3333, 1234]);

validateVRP({prefix: "192.0.2.0/24", maxLength: 28, asn: 65536});

Available functions

  • validatePrefix
  • validateIP
  • validateAS
  • validateASpath
  • validateVRP
1.0.8

2 months ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago