0.1.0 • Published 12 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: PS0.1.0
12 years ago