Methods
# static isValidVin(vin) → {boolean}
Provides offline validation of Vehicle Identification Numbers (VINs) using the VIN Check Algorithm.
Parameters:
Name | Type | Description |
---|---|---|
vin |
string | Vehicle Identification Number. |
True for a valid VIN, false for an invalid VIN.
boolean
Examples
// <script type="text/javascript" src="https://www.npmjs.com/package/@shaggytools/nhtsa-api-wrapper"></script>
const isValid = NHTSA.isValidVin('3VWD07AJ5EM388202')
console.log(isValid) // true
import { isValidVin } from '@shaggytools/nhtsa-api-wrapper'
const isValid = isValidVin('3VWD07AJ5EM388202')
console.log(isValid) // true