Options
All
  • Public
  • Public/Protected
  • All
Menu

@voxasoftworks/vin

Index

Functions

Functions

Const validate

  • validate(vin?: string | null): boolean
  • Determines whether a vehicle identification number (VIN) is valid based on length and check digit

    Example (es module)

    import { validate } from '@voxasoftworks/vin';
    
    console.log(validate('11111111111111111'));
    // => true
    

    Example (es module)

    var validate = require('@voxasoftworks/vin').validate;
    
    console.log(validate('11111111111111111'));
    // => true
    

    Parameters

    • Optional vin: string | null

      the VIN to be validated

    Returns boolean

    boolean based on VIN validity

Generated using TypeDoc