const CarQuery = require('carquery-api');
CarQuery.getYears((err, results) => {
if (err) return err;
return console.log(results); // { minimum: 1940, maximum: 2016 }
});
getMakes
- gets all makesgetModel
- gets model details for a modelgetModels
- gets all models for a makegetTrims
- gets details of various modelsgetYears
- gets the minimum and maximum years
npm run lint
npm test