Also known as redbus-api-types or @nn140/redbus-api-types.
Simple type definitions for the REDBUS API.
Install with npm / yarn / deno / pnpm:
yarn add @nn140/redbus-api-types
pnpm add @nn140/redbus-api-types
deno add npm:@nn140/redbus-api-types
npm install --save @nn140/redbus-api-typesimport { IRegistrationLookupResult } from 'redbus-api-types'; // or '@nn140/redbus-api-types'
import axios from 'axios';
const reg: string = 'LV23EYZ';
const response = await axios.get<IRegistrationLookupResult>(`https://redbus.nn140.uk/api/lookup/${reg}`);
console.log(response.data.make); // "Wright StreetDeck Electroliner"NN140.UK is a single-person crew devoted to making useful services, programs, packages and more - we thank each and every developer, organisation and company that utilise our tools, to be recognised means so much to us!
It also means a lot to us by supporting our development, you can use the Stripe links at the top and bottom of this README to donate once or subscribe to donate to us, optionally you can also get your profile picture, or brand image, featured on our supporters board!

