vin-lib

A Library to work with VIN numbers

Usage no npm install needed!

<script type="module">
  import vinLib from 'https://cdn.skypack.dev/vin-lib';
</script>

README

VIN lib

This package is a great library to work with VIN numbers> It can validate the VIN number and also break it down into smaller components for validation

Usage

var vinLib = require('vin-lib');
var isValidVin = vinLib.isValidVin('11111111111111111'); // returns true if this is a valid VIN
var vinDetail = vinLib.getVinDetails('11111111111111111'); // returns a structure with the following elements

{ wmi: 'WB',
  vds: 'AM334',
  vis: 'YFP7150',
  checkDigit: '6',
  modelYear: 2000,
  country: 'Germany',
  assemblyPlant: 'F',
  serialNumber: 'P71500',
  manufacturer: 'BMW' 
  }