vinidator
v2.0.1
Published
Validate a vehicle identification number(VIN)
Downloads
64
Maintainers
Readme
vinidator
Validate a vehicle identification number(VIN)
Install
npm i vinidator
Only breaking change in version 2.0 was the switch to ESM
API
import { validate, validateAndThrowOnInvalid } from 'vinidator'
validate('1HTMMAANX4H670946') // { isValid: true, code: 'SUCCESS', message: 'VIN is valid' }
validateAndThrowOnInvalid('1m2k195c51m017395') // throws