treboryx / hellas

Utilities such as Greek Tax ID, Greek Social Security Number, & Greek Postal Code validators

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Utilities such as Greek Tax ID, Greek Social Security Number, & Greek Postal Code validators

License:MIT License


Languages

Language:TypeScript 100.0%