Skip to content
This repository has been archived by the owner on Oct 20, 2021. It is now read-only.

Latest commit

 

History

History
19 lines (14 loc) · 311 Bytes

port.md

File metadata and controls

19 lines (14 loc) · 311 Bytes

Port

Validates if the given input is a port.

Valid values:

validator.port().validate('80');
validator.port().validate('3030');
validator.port().validate('8080');

Invalid values:

validator.port().validate('-1');
validator.port().validate('65536');
validator.port().validate('808080');