JSPM

umapi_vin_decode

2.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q24048F
  • License MIT

Декодировать вин код автомобиля

Package Exports

  • umapi_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 (umapi_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

umapi_vin_decode

======

Nodejs модуль для декодирования вин кода автомобиля

Документация wiki:

List_of_common_WMI , List_of_all_WMIs

Country_or_Region_codes , WMI_Regions

Model_year_encoding , Model_year

Установка

npm install umapi_vin_decode

Тест

npm run test

Использование

Подключение:

var UmapiVinDecode = require('umapi_vin_decode').default

try {
    var vin = new UmapiVinDecode('your_vin_code')
    console.log( vin.getDecodeVin() )
} catch (error) {
    console.log( error.message )
}

Получить информацию по VIN:

console.log( vin.getDecodeVin() )

Получить WMI:

console.log( vin.getWmi() )

Получить VDS:

console.log( vin.getVds() )

Получить VIS:

console.log( vin.getVis() )

Производитель:

console.log( vin.identifyManufacturer() )

Регион:

console.log( vin.identifyCountry() )

Год выпуска:

console.log( vin.identifyModelYear() )

Автор

Alexandr Nikulin, e-mail: nekulin@mail.ru