0.0.1 • Published 7 years ago

myanphone v0.0.1

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

myanphone

Javascript module for checking operator, network type by using phone number.

Installation

Using yarn

$ yarn add myanphone

Using npm

$ npm install myanphone --save

Usage

Import

import { sanitize, validate, getOperatorName, getNetworkType } from 'myanphone'

Sanitize the phone number

sanitize(PHONE_NUMBER)

Validate the phone number

validate(PHONE_NUMBER")

Operator Name

getOperatorName(PHONE_NUMBER")

Network Type

getNetworkType(PHONE_NUMBER")

Credit

myanmar-phonenumber