0.1.2 • Published 3 years ago

dhl-packstation-validation v0.1.2

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

DHL Packstation validation

Description

This package helps to validate the address of a Packstation of DHL by its Number and the zip code. It also allows to retrieve a list of Packstationen close to the location of a zip code.

Usage

Packstation Address Validation

import { isValidAddress } from 'dhl-packstation-validation'

isValidAddress(<your zip code>, <your packstation number>).then((isValid) =>
 if (isValid) {
   // do something
 }
)

Retrieve List of Packstationen

import { listAddresses } from 'dhl-packstation-validation'

listAddresses(<your zip code>).then((list) => {
  // do something with the list
})
0.1.3

2 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago