wagon-code
v1.0.7
Published
UIC Wagon-Code Validator
Downloads
134
Readme
UIC Wagon-Code Validator
This library provides a simple way to validate UIC wagon codes using the check digit mechanism.
Setup
You can install the library via npm:
npm i wagon-code
Usage
const WagonCodeValidator = require('wagon-code');
const wagonCode = '238574763351';
const isValid = WagonCodeValidator.isValidWagonCode(wagonCode);
console.log(isValid ? 'Valid wagon code' : 'Invalid wagon code');