/node-car-api

Unofficial caradisiac.com api wrapper

Primary LanguageJavaScript

node-car-api (work in progress)

Unofficial caradisiac.com api wrapper

Table of Contents generated with DocToc

Description

Get all technical records related to car specification from caradisiac.com.

Installation

❯ npm install https://github.com/92bondstreet/node-car-api.git
❯ yarn add 92bondstreet/node-car-api

Usage

const {getBrands} = require('node-car-api');

async function print () {
  const brands = await getBrands();

  console.log(brands);
}

print();
const {getModels} = require('node-car-api');

async function print () {
  const models = await getModels('PEUGEOT');

  console.log(models);
}

print();

Api

getBrands(configuration)

Return array of brands

configuration

Type: Object

headers

Type: Object
Default: {}

proxy

Type: String
Default: null

getModels(brand, configuration)

Return array of models for the given brand

brand

Type: Object

name

Type: String
Default: {}

url

Type: String
Default: null

configuration

Type: Object

headers

Type: Object
Default: {}

proxy

Type: String
Default: null

Licence

Uncopyrighted