2.0.1 • Published 2 years ago

zipcodeplus v2.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

zipcodeplus :lady_beetle:

zipcodeplus is a zipcode details provider across world, we aim to cover all the countries but currently we are only serving for India and USA.having country code (IN and US) :v:.

:point_right: npm

This is the preferred method. For example:

npm install zipcodeplus

zipcode(countryCode: string, zipcode: string|number)

const {zipcode} = require("zipcodeplus")

async function getZipcode(){
   try {
     const zip =  await zipcode("IN",482001)
     console.log("zip",JSON.stringify(zip))
   } catch (error) {
       console.log(error)
   }
}
getZipcode()

Result :grinning:

{"status":200,"message":"success","zip":{"Name":"Baroda House","Description":null,"BranchType":"Sub Post Office","DeliveryStatus":"Non-Del
ivery","Circle":"Delhi","District":"Central Delhi","Division":"New Delhi Central","Region":"Delhi","Block":"New Delhi","State":"Delhi","Countr
y":"India","Pincode":"110001"}}

status code

statusCodeMessage
200SUCCESS
400INVALID_REQUEST
404NOT_FOUND

isValidZipcode(countryCode: string, zipcode: string|number)

const {isValidZipcode} = require("zipcodeplus")
console.log(isValidZipcode("IN",582001))

Available countries

countryCodecase sensitive
INTrue
USTrue
UKTrue
AUTrue
CATrue
2.0.1

2 years ago

2.0.0

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago