This package checks digit of container.
via npm
$ npm install check-cont-number
via yarn
$ yarn add check-cont-number
As the check digit is calculated using an algorithm that takes into account both the BIC code and serial number, it is imperative that the check digit be modified when containers are re-marked with a different BIC code.
- The owner prefix (BIC code): three capital letters of the Latin alphabet to indicate the owner or principal operator of the container.
- The equipment category identifier: one capital letter as follows:
- U for all freight containers.
- J for detachable freight container-related equipment.
- Z for trailers and chassis.
- The serial number: six Arabic numerals, left at owner‘s or operator‘s option.
- The check digit: one Arabic numeral providing a means of validating the recording and transmission accuracies of the owner code and serial number.