phone2carrier
v1.0.7
Published
Validation and number type recognition using libphonenumber library, country code recognition, and most importantly mobile carrier.
Downloads
4
Readme
Phone2Carrier.
Phone2Carrier allows you to find out the carrier of a phone number.
Installation
Install the package with:
npm i phone2carrier
Library
To use it as a library, you can do the following:
const phone2carrier = require('phone2carrier');
const result = phone2carrier.getPhoneFullDetails('447366105215');
console.log(result);
// {
// isValid: true,
// ISO3: 'GBR',
// countryCode: 44,
// carrier: 'Three',
// phoneType: 'MOBILE'
// }
How do I contribute?
If you want to contribute, you can do so by doing the following:
- Fork the repository
- Make your changes
- Submit a pull request
- Wait for it to be merged
How do I get help?
If you need help, you can do so by doing the following:
- Create an issue
- Wait for it to be resolved
License
This project is licensed under the MIT license.