numverify-cli
v1.0.0
Published
Numverify CLI Tool
Readme
Numverify CLI
Numverify CLI is a simple and efficient tool for validating phone numbers and retrieving country dialing codes using the Numverify API.
Installation
To install the CLI globally, run the following command:
npm install -g numverify-cliSetup
To use the CLI, you need an API key from Numverify. You can sign up and get your free API key from Numverify.
Once you have the API key, add it using the following command:
numverify add <api_key>This will store your API key in the environment for seamless usage.
Commands
1. Validate a Phone Number
Validate a phone number to check its authenticity, format, and details:
numverify validate <phone_number>Example
numverify validate 141585862732. Get Dialing Codes for Countries
Retrieve the dialing codes for one or more countries by name:
numverify countries <country_name1> <country_name2> ...Example
numverify countries Afghanistan Albania Algeria3. Add or Update API Key
Add or update your Numverify API key:
numverify add <api_key>Example
numverify add your_api_key_hereUsage Examples
Validate a Phone Number
numverify validate 14158586273Output:
Validation Details for: 14158586273
------------------------------------
Country: United States
Location: California
Carrier: AT&T
Line Type: MobileGet Dialing Codes for Multiple Countries
numverify countries Afghanistan Albania AlgeriaOutput:
Dialing Codes:
Afghanistan: +93
Albania: +355
Algeria: +213Contributing
Contributions are welcome! Feel free to submit a pull request or open an issue on the GitHub repository.
License
This project is licensed under the MIT License. See the LICENSE file for details.
