0.1.0 • Published 10 years ago
country-info v0.1.0
Country Information
#Usage
var countryInfo = require('country-info');
countryInfo.getInfoByCountryName('palestine', function(data){
console.log(data);
});
#Result:
{ name: 'PALESTINE',
code: '970',
towLetters: 'PA',
threeLetters: 'PSE' }
#API Reference
getInfoByCountryName(countryName, callback) #countryName: palestine
getInfoByDialNumber(dialNumber, callback) #dialNumber: 970
getInfoByThreeLettersISO(threeLetters, callback) #threeLetters: PSE
getInfoByTwoLettersISO(twoLetters, callback) #twoLetters: PS
0.1.0
10 years ago