Skip to content

nn140/REDBUS-Open-API-Types

Repository files navigation

NN140.UK logo NN140.UK logo

Badge Badge

REDBUS API Types

Also known as redbus-api-types or @nn140/redbus-api-types. Simple type definitions for the REDBUS API.


Installation

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-types

Usage

import { 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"

Thanks for using this package

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!


Badge Badge

NN140.UK logo NN140.UK logo

About

Typescript Types for the REDBUS Open API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors