UNPKG

@voxasoftworks/vin

Version:

A package for validating vehicle identification numbers (VINs) written in TypeScript

25 lines (24 loc) 602 B
/** * Determines whether a vehicle identification number (VIN) is valid based on * length and check digit * * ### Example (es module) * ```js * import { validate } from '@voxasoftworks/vin'; * * console.log(validate('11111111111111111')); * // => true * ``` * * ### Example (es module) * ```js * var validate = require('@voxasoftworks/vin').validate; * * console.log(validate('11111111111111111')); * // => true * ``` * * @param vin - the VIN to be validated * @returns boolean based on VIN validity */ export declare const validate: (vin?: string | null | undefined) => boolean;