rc-reader

Registration certificate reader

Usage no npm install needed!

<script type="module">
  import rcReader from 'https://cdn.skypack.dev/rc-reader';
</script>

README

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.