https://github.com/dlzer/gonanp
Small library for generating NANPcompatible phone numbers
https://github.com/dlzer/gonanp
Last synced: 10 months ago
JSON representation
Small library for generating NANPcompatible phone numbers
- Host: GitHub
- URL: https://github.com/dlzer/gonanp
- Owner: DLzer
- License: mit
- Created: 2024-12-16T17:38:01.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-16T20:07:07.000Z (over 1 year ago)
- Last Synced: 2025-01-18T00:29:55.547Z (over 1 year ago)
- Language: Go
- Size: 6.84 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GoNANP
[](https://goreportcard.com/report/github.com/DLzer/gonanp)
[](https://github.com/DLzer/gonanp/actions/workflows/test.yml)
Generate North American Numbering Plan compatible phone numbers ex `7725059292`
## Install
```bash
go get github.com/DLzer/gonanp
```
## Generator usage
```go
import "github.com/DLzer/gonanp
number := gonanp.GenerateNanp()
```
## Validator usage
```go
import "github.com/DLzer/gonanp
number := 7725059292
isValid := gonanp.ValidateNanp(number)
```