Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 1.03 KB

README.md

File metadata and controls

38 lines (26 loc) · 1.03 KB

phony

Package Version Hex Docs

phony

An international phone number validator

Quick start

gleam test  # Run the tests
gleam shell # Run an Erlang shell

Installation

This package can be added to your Gleam project:

gleam add phony

and its documentation can be found at https://hexdocs.pm/phony.

Usage

import phony

pub fn main() {
    phony.validate("+1 4305573966")
    phony.validate("+49 1522 343333")
    phony.validate_by_country("09101752439", "IR")
    phony.validate_by_code("27111234", "880")
}