Skip to content

thomn/dhl-packstation-validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DHL Packstation validator

This package has been created to validate DHL packstation addresses and implements the DHL standards as defined per DHL barcode standards version 3.1.

Dependencies / Compatibility

  • ES2015 import/export syntax is being used. The package comes with a .babelrc with a transform-es2015-modules-commonjs pluin definition.
  • String.padStart is being used. Please make sure you have the necessary polyfills if you want to support browsers which do not provide String.padStart.

Installation

The package is hosted on npm. You can install it via npm or yarn:

npm i --save dhl-packstation-validator

Usage

Postnummer Validation

To validate a postnummer string, you can call the static method Postnummer.isValid(postnummer). It will validate the given postnummer based on it's format and the check digit and return the result as boolean.

About

A JS-package for validating DHL packstation addresses

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •