Socket
Socket
Sign inDemoInstall

@apilayer/numverify

Package Overview
Dependencies
16
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @apilayer/numverify

Numverify offers global phone number validation & lookup JSON API


Version published
Maintainers
2
Install size
2.40 MB
Created

Readme

Source

numverify-go

Numverify offers global phone number validation & lookup JSON API

Installation

Using npm

npm require --save @apilayer/numverify

or yarn

yarn add @apilayer/numverify

validate

validate validates mobile number

Signature:

validate(number: string, country_code: string = ''): Promise<Response>

Example:

const response = layer.check("14158586273")

console.log("response: ", response)

Specifying a country code above will perform a local number search

Response:

{
  valid: true,
  number: "14158586273",
  local_format: "4158586273",
  international_format: "+14158586273",
  country_prefix: "+1",
  country_code: "US",
  country_name: "United States of America",
  location: "Novato",
  carrier: "AT&T Mobility LLC",
  line_type: "mobile"
}

countries

countries returns a list of all supported countries

Signature:

countries(): Promise<Record<string, Record<string, string>>>

Example:

const response = layer.countries()

console.log("response: ", response)

Response:

{
  "AF": {
    "country_name": "Afghanistan",
    "dialling_code": "+93"
  },
  ...
}

License

MIT

FAQs

Last updated on 01 Oct 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc