Skip to content

kubanac95/rc-reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rc-reader

📋 Introduction

RC Reader is a simple Node.js wrapper around eVehicleRegistration.lib used to read Serbian vehicle registration certificates in ICC format with a smart card reader.

📖 Installation

This is a Node.js module available through the npm registry.

Before installing, download and install Node.js. Node.js v12.14.0 (32 bit) or higher is required.

If this is a brand new project, make sure to create a package.json first with the npm init command.

Installation is done using the npm install command:

npm install rc-reader

Methods

.readVehicleData()

Returns a Promise that resolves to an object containing following fields:

  • dateOfFirstRegistration (string) -- Date of first registration
  • yearOfProduction (string) -- Year of production
  • vehicleMake (string) --
  • vehicleType (string) --
  • commercialDescription (string) --
  • vehicleIDNumber (string) --
  • registrationNumberOfVehicle (string) --
  • maximumNetPower (string) --
  • engineCapacity (string) --
  • typeOfFuel (string) --
  • powerWeightRatio (string) --
  • vehicleMass (string) --
  • maximumPermissibleLadenMass (string) --
  • typeApprovalNumber (string) --
  • numberOfSeats (string) --
  • numberOfStandingPlaces (string) --
  • engineIDNumber (string) --
  • numberOfAxles (string) --
  • vehicleCategory (string) --
  • colourOfVehicle (string) --
  • restrictionToChangeOwner (string) --
  • vehicleLoad (string) --

.readPersonalData()

Returns a Promise that resolves to an object containing following fields:

  • ownersPersonalNo (string) --
  • ownersSurnameOrBusinessName (string) --
  • ownerName (string) --
  • ownerAddress (string) --
  • usersPersonalNo (string) --
  • usersSurnameOrBusinessName (string) --
  • usersName (string) --
  • usersAddress (string) --

.readDocumentData()

Returns a Promise that resolves to an object containing following fields:

  • stateIssuing (string) --
  • competentAuthority (string) --
  • authorityIssuing (string) --
  • unambiguousNumber (string) --
  • issuingDate (string) --
  • expiryDate (string) --
  • serialNumber (string) --

📄 License

RC Reader is MIT licensed, as found in the [LICENSE][l] file.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published