Skip to content

A TypeScript package for the DVLA Vehicle Enquiry Service API

License

Notifications You must be signed in to change notification settings

voxa/dvla-vehicle-enquiry

Repository files navigation

@voxasoftworks/dvla-vehicle-enquiry

A TypeScript package for the DVLA Vehicle Enquiry Service API

To get started, install the package.

npm install @voxasoftworks/dvla-vehicle-enquiry
yarn add @voxasoftworks/dvla-vehicle-enquiry

You'll need to register for an API key from the DVLA. You can do this here.

Then, import the package and use it.

import { getVehicleDetails } from '@voxasoftworks/dvla-vehicle-enquiry';

const vehicleDetails = await getVehicleDetails(
    { apiKey: process.env.API_KEY },
    { registrationNumber: 'AA19AAA' }
);

Testing

To test the functions, set your DVLA testing environmet key to API_KEY in .env.

About

A TypeScript package for the DVLA Vehicle Enquiry Service API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published