greece-postal-code
Validation of postal codes used in Greece.
Έλεγχος εγκυρότητας ενός ελληνικού ταχυδρομικού κώδικα.
Installation
$ npm install greece-postal-code
Usage
To validate a postal code:
var postalCode = ; postalCode; // truepostalCode; // false
Please note that the validation is strict, for example it will not allow spaces. Use clean()
to remove any whitespace from the postal code string before validating it:
postalCode; // falsevar cleaned = postalCode; // '10188'postalCode; // true