2.0.0 • Published 5 years ago
umapi_vin_decode v2.0.0
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