Skip to content

vai21/node_international_phone_codes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

node_international_phone_codes

This repository have list of international phone codes

Installing

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:

  1. Get all phone codes using this codes:
phoneCodes.getAllPhoneCode();
  1. Find Phone Code By Code example:
phoneCodes.findPhoneCodeByCode('+62');
  1. Find Phone Code By Country Name example:
phoneCodes.findPhoneCodeByCountryName('Indonesia');
  1. Find Phone Code By Country ID example:
phoneCodes.findPhoneCodeByCountryCode('ID');

Running the tests

You can try it and see the result in the console.

console.log(JSON.stringify(phoneCodes.getAllPhoneCode()));

Authors

  • Faisal - Github - vai21

License

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

About

This repository have list of international phone codes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published