JSPM

vin-decode

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 557
  • Score
    100M100P100Q101203F
  • License MIT

Library for decoding VIN number

Package Exports

  • vin-decode

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vin-decode) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Vin decoder

Library for decoding VIN number

All data in this library has been taken from vin-decoder. vin-decode is heavily based on that library but it seems to be unfinished and not updated anymore.

FAQ

Why this exists?

There are no good libraries that can decode VIN and return even basic information (like brand and country)

Are there good alternatives?

I didn't find any. Did you? Let me know!

I found a bug! What should I do?

Feel free to make a pull request. All contributions are appreciated!

Usage

Getting started

Install dependencies

npm i --save vin-decode

Get information from VIN

import vinDecoder from 'vin-decode';

vinDecoder('BADVINNUMBER'); // will return false (currently checks only the length of VIN)
vinDecoder('EXAMPLEVINNUMBER').split(); // will return object of codes from VIN
vinDecoder('EXAMPLEVINNUMBER').decode(); // will return object of codes from vin with manufacturer, country, year fields decoded