0.1.0 • Published 10 years ago

country-info v0.1.0

Weekly downloads
5
License
-
Repository
github
Last release
10 years ago

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