Skip to content

franvarney/node-carquery-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-carquery-api

Usage

const CarQuery = require('carquery-api');

CarQuery.getYears((err, results) => {
  if (err) return err;
  return console.log(results); // { minimum: 1940, maximum: 2016 }
});

Functions

  • getMakes - gets all makes
  • getModel - gets model details for a model
  • getModels- gets all models for a make
  • getTrims - gets details of various models
  • getYears - gets the minimum and maximum years

Lint

npm run lint

Test

npm test