Skip to content

Latest commit

 

History

History
71 lines (44 loc) · 1.02 KB

README.md

File metadata and controls

71 lines (44 loc) · 1.02 KB

hellas

NPM version

Usage

npm i hellas
# or
yarn add hellas
# or
pnpm install hellas

isAfm

Greek Tax Identification Number Validator

Έλεγχος ορθότητας Α.Φ.Μ

import { isAfm } from "hellas";

isAfm("123456789"); // false

isAmka

Greek Social Security Number Validator

Έλεγχος ορθότητας Α.Μ.Κ.Α

import { isAmka } from "hellas";

isAmka("123456789"); // false

isPostalCode

Greek Postal Code Validator

import { isPostalCode } from "hellas";

isPostalCode("12333"); // true

isVehiclePlate

Greek Vehicle Plate Validator

import { isVehiclePlate } from "hellas";

isVehiclePlate("ΧΑΟ-2222"); // true

isPhone

Greek Phone Number Validator (mobile & landline)

import { isPhone } from "hellas";

isPhone("+30 694 123 4567"); // true

License

MIT License © 2022 Robert