This repository have list of international phone codes
Instruction for using this package First install this package
npm install node_international_phone_codes
Declare the package in your application
const phoneCodes = require('node_international_phone_codes');
There are four functions in this package. You can use this function immediately after declaring the packages. These are example of functions that available within this package:
- Get all phone codes using this codes:
phoneCodes.getAllPhoneCode();
- Find Phone Code By Code example:
phoneCodes.findPhoneCodeByCode('+62');
- Find Phone Code By Country Name example:
phoneCodes.findPhoneCodeByCountryName('Indonesia');
- Find Phone Code By Country ID example:
phoneCodes.findPhoneCodeByCountryCode('ID');
You can try it and see the result in the console.
console.log(JSON.stringify(phoneCodes.getAllPhoneCode()));
- Faisal - Github - vai21
This project is licensed under the MIT License - see the LICENSE.md file for details.
Donate me a cup of coffee https://www.paypal.me/faisalrasid