Welcome to the Phone Tracker CLI project! This document provides additional information and resources to help you get the most out of this package.
To start using the Phone Tracker CLI package, you need to install it globally using npm. Open your terminal and run the following command:
npm install -g mobile-number-tracker
This will make the phone-tracker
command available globally.
You can use the package to validate phone numbers. Here's how:
const phoneTracker = require("mobile-number-tracker");
const phoneNumber = "+19999999999";
const isValid = phoneTracker.isValidPhoneNumber(phoneNumber);
console.log(`Is Valid: ${isValid}`);
Retrieve service provider information based on country codes:
const phoneTracker = require("mobile-number-tracker");
const countryCode = "+1";
const serviceProvider = phoneTracker.getServiceProvider(countryCode);
console.log(`Country Code: ${countryCode}`);
console.log(`Service Provider: ${serviceProvider}`);
Generate latitude and longitude coordinates:
const phoneTracker = require("mobile-number-tracker");
const randomLocation = phoneTracker.generateRandomLocation(-90, 90, -180, 180);
console.log(`Latitude: ${randomLocation.latitude}`);
console.log(`Longitude: ${randomLocation.longitude}`);
The Phone Tracker CLI package comes with a command-line interface (CLI) that makes it easy to access its functionalities. Here are some examples of how to use the CLI:
-
Validate a phone number:
phone-tracker -v +19999999999
-
Get service provider information:
phone-tracker -s +1
-
Generate coordinates:
phone-tracker -c
This project is licensed under the MIT License. For more details, please read the LICENSE file.
We welcome contributions from the community! If you'd like to contribute to the project, please read our Contribution Guidelines to get started.
Thank you for using the Phone Tracker CLI package. If you have any questions or need assistance, feel free to reach out to Pabitra Banerjee, the project maintainer.