1.1.0 • Published 10 months ago

calc-ilu-check-digit v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Calc-ILU-check-digit

How is the check digit of a container calculated?

Do you need to check if a container id (ILU code or BIC code) is valid?

Take the javascript function, that I publish with this little project, to find out, if the check digit is correct.

The calculation is based upon:

Installation

npm install calc-ilu-check-digit

Usage

import calcIluCheckDigit from 'calc-ilu-check-digit';

let ilu = 'ZEPU 003725 5';
calcIluCheckDigit(ilu); // Will return 5.
1.1.0

10 months ago

1.0.0

12 months ago