car-info
Version:
Typescript Library for Car Make and Models
234 lines (231 loc) • 17.7 kB
TypeScript
declare const data: {
readonly Acura: {
readonly models: readonly ["2.2CL", "2.3CL", "3.0CL", "3.2CL", "ILX", "Integra", "Legend", "MDX", "NSX", "RDX", "3.5 RL", "RL", "RSX", "SLX", "2.5TL", "3.2TL", "TL", "TSX", "Vigor", "ZDX"];
};
readonly "Alfa Romeo": {
readonly models: readonly ["164", "8C Competizione", "GTV-6", "Milano", "Spider"];
};
readonly AMC: {
readonly models: readonly ["Alliance", "Concord", "Eagle", "Encore", "Spirit"];
};
readonly "Aston Martin": {
readonly models: readonly ["DB7", "DB9", "DBS", "Lagonda", "Rapide", "V12 Vantage", "V8 Vantage", "Vanquish", "Virage"];
};
readonly Audi: {
readonly models: readonly ["100", "200", "4000", "5000", "80", "90", "A3", "A4", "A5", "A6", "A7", "A8", "allroad", "Cabriolet", "Coupe", "Q3", "Q5", "Q7", "Quattro", "R8", "RS 4", "RS 5", "RS 6", "S4", "S5", "S6", "S7", "S8", "TT", "TT RS", "TTS", "V8 Quattro"];
};
readonly Avanti: {
readonly models: readonly ["Convertible", "Coupe", "Sedan"];
};
readonly Bentley: {
readonly models: readonly ["Arnage", "Azure", "Brooklands", "Continental", "Corniche", "Eight", "Mulsanne", "Turbo R"];
};
readonly BMW: {
readonly models: readonly ["128i", "135i", "135is", "318i", "318iC", "318iS", "318ti", "320i", "323ci", "323i", "323is", "323iT", "325Ci", "325e", "325es", "325i", "325is", "325iX", "325xi", "328Ci", "328i", "328iS", "328xi", "330Ci", "330i", "330xi", "335d", "335i", "335is", "335xi", "ActiveHybrid 3", "325", "524td", "525i", "525xi", "528e", "528i", "528iT", "528xi", "530i", "530iT", "530xi", "533i", "535i", "535i Gran Turismo", "535xi", "540i", "545i", "550i", "550i Gran Turismo", "ActiveHybrid 5", "633CSi", "635CSi", "640i", "640i Gran Coupe", "645Ci", "650i", "650i Gran Coupe", "L6", "733i", "735i", "735iL", "740i", "740iL", "740Li", "745i", "745Li", "750i", "750iL", "750Li", "760i", "760Li", "ActiveHybrid 7", "Alpina B7", "840Ci", "850Ci", "850CSi", "850i", "L7", "1 Series M", "M Coupe", "M Roadster", "M3", "M5", "M6", "X5 M", "X6 M", "ActiveHybrid X6", "X1", "X3", "X5", "X6", "Z3", "Z4", "Z8"];
};
readonly Buick: {
readonly models: readonly ["Century", "Electra", "Enclave", "Encore", "LaCrosse", "Le Sabre", "Lucerne", "Park Avenue", "Rainier", "Reatta", "Regal", "Rendezvous", "Riviera", "Roadmaster", "Skyhawk", "Skylark", "Somerset", "Terraza", "Verano"];
};
readonly Cadillac: {
readonly models: readonly ["Allante", "ATS", "Brougham", "Catera", "Cimarron", "CTS", "De Ville", "DTS", "Eldorado", "Escalade", "Escalade ESV", "Escalade EXT", "Fleetwood", "Seville", "SRX", "STS", "XLR", "XTS"];
};
readonly Chevrolet: {
readonly models: readonly ["Astro", "Avalanche", "Aveo", "Aveo5", "Beretta", "Blazer", "Camaro", "Caprice", "Captiva Sport", "Cavalier", "Celebrity", "Chevette", "Citation", "Cobalt", "Colorado", "Corsica", "Corvette", "Cruze", "El Camino", "Equinox", "Express Van", "G Van", "HHR", "Impala", "Kodiak C4500", "Lumina", "Lumina APV", "LUV", "Malibu", "Metro", "Monte Carlo", "Nova", "Prizm", "S10 Blazer", "S10 Pickup", "Silverado and other C/K1500", "Silverado and other C/K2500", "Silverado and other C/K3500", "Sonic", "Spark", "Spectrum", "Sprint", "SSR", "Suburban", "Tahoe", "Tracker", "TrailBlazer", "TrailBlazer EXT", "Traverse", "Uplander", "Venture", "Volt"];
};
readonly Chrysler: {
readonly models: readonly ["200", "300", "300M", "Aspen", "Caravan", "Cirrus", "Concorde", "Conquest", "Cordoba", "Crossfire", "E Class", "Fifth Avenue", "Grand Voyager", "Imperial", "Intrepid", "Laser", "LeBaron", "LHS", "Neon", "New Yorker", "Newport", "Pacifica", "Prowler", "PT Cruiser", "Sebring", "TC by Maserati", "Town & Country", "Voyager"];
};
readonly Daewoo: {
readonly models: readonly ["Lanos", "Leganza", "Nubira"];
};
readonly Daihatsu: {
readonly models: readonly ["Charade", "Rocky"];
};
readonly Datsun: {
readonly models: readonly ["200SX", "210", "280ZX", "300ZX", "310", "510", "720", "810", "Maxima", "Pickup", "Pulsar", "Sentra", "Stanza"];
};
readonly DeLorean: {
readonly models: readonly ["DMC-12"];
};
readonly Dodge: {
readonly models: readonly ["400", "600", "Aries", "Avenger", "Caliber", "Caravan", "Challenger", "Charger", "Colt", "Conquest", "D/W Truck", "Dakota", "Dart", "Daytona", "Diplomat", "Durango", "Dynasty", "Grand Caravan", "Intrepid", "Journey", "Lancer", "Magnum", "Mirada", "Monaco", "Neon", "Nitro", "Omni", "Raider", "Ram 1500 Truck", "Ram 2500 Truck", "Ram 3500 Truck", "Ram 4500 Truck", "Ram 50 Truck", "RAM C/V", "Ram SRT-10", "Ram Van", "Ram Wagon", "Ramcharger", "Rampage", "Shadow", "Spirit", "Sprinter", "SRT-4", "St. Regis", "Stealth", "Stratus", "Viper"];
};
readonly Eagle: {
readonly models: readonly ["Medallion", "Premier", "Summit", "Talon", "Vision"];
};
readonly Ferrari: {
readonly models: readonly ["308 GTB Quattrovalvole", "308 GTBI", "308 GTS Quattrovalvole", "308 GTSI", "328 GTB", "328 GTS", "348 GTB", "348 GTS", "348 Spider", "348 TB", "348 TS", "360", "456 GT", "456M GT", "458 Italia", "512 BBi", "512M", "512TR", "550 Maranello", "575M Maranello", "599 GTB Fiorano", "599 GTO", "612 Scaglietti", "California", "Enzo", "F355", "F40", "F430", "F50", "FF", "Mondial", "Testarossa"];
};
readonly FIAT: {
readonly models: readonly ["2000 Spider", "500", "Bertone X1/9", "Brava", "Pininfarina Spider", "Strada", "X1/9"];
};
readonly Fisker: {
readonly models: readonly ["Karma"];
};
readonly Ford: {
readonly models: readonly ["Aerostar", "Aspire", "Bronco", "Bronco II", "C-MAX", "Club Wagon", "Contour", "Courier", "Crown Victoria", "E-150 and Econoline 150", "E-250 and Econoline 250", "E-350 and Econoline 350", "Edge", "Escape", "Escort", "Excursion", "EXP", "Expedition", "Expedition EL", "Explorer", "Explorer Sport Trac", "F100", "F150", "F250", "F350", "F450", "Fairmont", "Festiva", "Fiesta", "Five Hundred", "Flex", "Focus", "Freestar", "Freestyle", "Fusion", "Granada", "GT", "LTD", "Mustang", "Probe", "Ranger", "Taurus", "Taurus X", "Tempo", "Thunderbird", "Transit Connect", "Windstar", "ZX2 Escort", "Maverick"];
};
readonly Freightliner: {
readonly models: readonly ["Sprinter"];
};
readonly Geo: {
readonly models: readonly ["Metro", "Prizm", "Spectrum", "Storm", "Tracker"];
};
readonly GMC: {
readonly models: readonly ["Acadia", "Caballero", "Canyon", "Envoy", "Envoy XL", "Envoy XUV", "Jimmy", "Rally Wagon", "S15 Jimmy", "S15 Pickup", "Safari", "Savana", "Sierra C/K1500", "Sierra C/K2500", "Sierra C/K3500", "Sonoma", "Suburban", "Syclone", "Terrain", "TopKick C4500", "Typhoon", "Vandura", "Yukon", "Yukon XL"];
};
readonly Honda: {
readonly models: readonly ["Accord", "Civic", "CR-V", "CR-Z", "CRX", "Accord Crosstour", "Crosstour", "Del Sol", "Element", "Fit", "Insight", "Odyssey", "Passport", "Pilot", "Prelude", "Ridgeline", "S2000"];
};
readonly HUMMER: {
readonly models: readonly ["H1", "H2", "H3", "H3T"];
};
readonly Hyundai: {
readonly models: readonly ["Accent", "Azera", "Elantra", "Elantra Coupe", "Elantra Touring", "Entourage", "Equus", "Excel", "Genesis", "Genesis Coupe", "Santa Fe", "Scoupe", "Sonata", "Tiburon", "Tucson", "Veloster", "Veracruz", "XG300", "XG350"];
};
readonly Infiniti: {
readonly models: readonly ["EX35", "EX37", "FX35", "FX37", "FX45", "FX50", "G20", "G25", "G35", "G37", "I30", "I35", "J30", "JX35", "M30", "M35", "M35h", "M37", "M45", "M56", "Q45", "QX4", "QX56"];
};
readonly Isuzu: {
readonly models: readonly ["Amigo", "Ascender", "Axiom", "Hombre", "i-280", "i-290", "i-350", "i-370", "I-Mark", "Impulse", "Oasis", "Pickup", "Rodeo", "Stylus", "Trooper", "Trooper II", "VehiCROSS"];
};
readonly Jaguar: {
readonly models: readonly ["S-Type", "X-Type", "XF", "XJ12", "XJ6", "XJR", "XJR-S", "XJS", "XJ Vanden Plas", "XJ", "XJ8", "XJ8 L", "XJ Sport", "XK8", "XK", "XKR"];
};
readonly Jeep: {
readonly models: readonly ["Cherokee", "CJ", "Comanche", "Commander", "Compass", "Grand Cherokee", "Grand Wagoneer", "Liberty", "Patriot", "Pickup", "Renegade", "Scrambler", "Wagoneer", "Wrangler"];
};
readonly Kia: {
readonly models: readonly ["Amanti", "Borrego", "Forte", "Forte Koup", "Niro", "Optima", "Rio", "Rio5", "Rondo", "Sedona", "Sephia", "Sorento", "Soul", "Spectra", "Spectra5", "Sportage"];
};
readonly Lamborghini: {
readonly models: readonly ["Aventador", "Countach", "Diablo", "Gallardo", "Jalpa", "LM002", "Murcielago"];
};
readonly Lancia: {
readonly models: readonly ["Beta", "Zagato"];
};
readonly "Land Rover": {
readonly models: readonly ["Defender", "Discovery", "Freelander", "LR2", "LR3", "LR4", "Range Rover", "Range Rover Evoque", "Range Rover Sport"];
};
readonly Lexus: {
readonly models: readonly ["CT 200h", "ES 250", "ES 300", "ES 300h", "ES 330", "ES 350", "GS 300", "GS 350", "GS 400", "GS 430", "GS 450h", "GS 460", "GX 460", "GX 470", "HS 250h", "IS 250", "IS 250C", "IS 300", "IS 350", "IS 350C", "IS F", "LFA", "LS 400", "LS 430", "LS 460", "LS 600h", "LX 450", "LX 470", "LX 570", "RX 300", "RX 330", "RX 350", "RX 400h", "RX 450h", "SC 300", "SC 400", "SC 430"];
};
readonly Lincoln: {
readonly models: readonly ["Aviator", "Blackwood", "Continental", "LS", "Mark LT", "Mark VI", "Mark VII", "Mark VIII", "MKS", "MKT", "MKX", "MKZ", "Navigator", "Navigator L", "Town Car", "Zephyr"];
};
readonly Lotus: {
readonly models: readonly ["Elan", "Elise", "Esprit", "Evora", "Exige"];
};
readonly Maserati: {
readonly models: readonly ["430", "Biturbo", "Coupe", "GranSport", "GranTurismo", "Quattroporte", "Spyder"];
};
readonly Maybach: {
readonly models: readonly ["57", "62"];
};
readonly Mazda: {
readonly models: readonly ["323", "626", "929", "B-Series Pickup", "CX-5", "CX-7", "CX-9", "CX-30", "GLC", "MAZDA2", "MAZDA3", "MAZDA5", "MAZDA6", "MAZDASPEED3", "MAZDASPEED6", "Miata MX5", "Millenia", "MPV", "MX3", "MX6", "Navajo", "Protege", "Protege5", "RX-7", "RX-8", "Tribute"];
};
readonly McLaren: {
readonly models: readonly ["MP4-12C"];
};
readonly "Mercedes-Benz": {
readonly models: readonly ["190D", "190E", "240D", "300CD", "300CE", "300D", "300E", "300TD", "300TE", "C220", "C230", "C240", "C250", "C280", "C300", "C320", "C32 AMG", "C350", "C36 AMG", "C43 AMG", "C55 AMG", "C63 AMG", "CL500", "CL550", "CL55 AMG", "CL600", "CL63 AMG", "CL65 AMG", "CLK320", "CLK350", "CLK430", "CLK500", "CLK550", "CLK55 AMG", "CLK63 AMG", "CLS500", "CLS550", "CLS55 AMG", "CLS63 AMG", "260E", "280CE", "280E", "400E", "500E", "E300", "E320", "E320 Bluetec", "E320 CDI", "E350", "E350 Bluetec", "E400 Hybrid", "E420", "E430", "E500", "E550", "E55 AMG", "E63 AMG", "G500", "G550", "G55 AMG", "G63 AMG", "GL320 Bluetec", "GL320 CDI", "GL350 Bluetec", "GL450", "GL550", "GLK350", "ML320", "ML320 Bluetec", "ML320 CDI", "ML350", "ML350 Bluetec", "ML430", "ML450 Hybrid", "ML500", "ML550", "ML55 AMG", "ML63 AMG", "R320 Bluetec", "R320 CDI", "R350", "R350 Bluetec", "R500", "R63 AMG", "300SD", "300SDL", "300SE", "300SEL", "350SD", "350SDL", "380SE", "380SEC", "380SEL", "400SE", "400SEL", "420SEL", "500SEC", "500SEL", "560SEC", "560SEL", "600SEC", "600SEL", "S320", "S350", "S350 Bluetec", "S400 Hybrid", "S420", "S430", "S500", "S550", "S55 AMG", "S600", "S63 AMG", "S65 AMG", "300SL", "380SL", "380SLC", "500SL", "560SL", "600SL", "SL320", "SL500", "SL550", "SL55 AMG", "SL600", "SL63 AMG", "SL65 AMG", "SLK230", "SLK250", "SLK280", "SLK300", "SLK320", "SLK32 AMG", "SLK350", "SLK55 AMG", "SLR", "SLS AMG", "Sprinter"];
};
readonly Mercury: {
readonly models: readonly ["Capri", "Cougar", "Grand Marquis", "Lynx", "Marauder", "Mariner", "Marquis", "Milan", "Montego", "Monterey", "Mountaineer", "Mystique", "Sable", "Topaz", "Tracer", "Villager", "Zephyr"];
};
readonly Merkur: {
readonly models: readonly ["Scorpio", "XR4Ti"];
};
readonly MINI: {
readonly models: readonly ["Cooper Clubman", "Cooper S Clubman", "Cooper Countryman", "Cooper S Countryman", "Cooper Coupe", "Cooper S Coupe", "Cooper", "Cooper S", "Cooper Roadster", "Cooper S Roadster"];
};
readonly Mitsubishi: {
readonly models: readonly ["3000GT", "Cordia", "Diamante", "Eclipse", "Endeavor", "Expo", "Galant", "i", "Lancer", "Lancer Evolution", "Mighty Max", "Mirage", "Montero", "Montero Sport", "Outlander", "Outlander Sport", "Precis", "Raider", "Sigma", "Starion", "Tredia", "Van"];
};
readonly Nissan: {
readonly models: readonly ["200SX", "240SX", "300ZX", "350Z", "370Z", "Altima", "Armada", "Axxess", "Cube", "Frontier", "GT-R", "Juke", "Kicks", "Leaf", "Maxima", "Murano", "Murano CrossCabriolet", "NV", "NX", "Pathfinder", "Pickup", "Pulsar", "Quest", "Rogue", "Sentra", "Stanza", "Titan", "Van", "Versa", "Xterra"];
};
readonly Oldsmobile: {
readonly models: readonly ["88", "Achieva", "Alero", "Aurora", "Bravada", "Custom Cruiser", "Cutlass", "Cutlass Calais", "Cutlass Ciera", "Cutlass Supreme", "Firenza", "Intrigue", "Ninety-Eight", "Omega", "Regency", "Silhouette", "Toronado"];
};
readonly Peugeot: {
readonly models: readonly ["405", "504", "505", "604"];
};
readonly Plymouth: {
readonly models: readonly ["Acclaim", "Arrow", "Breeze", "Caravelle", "Champ", "Colt", "Conquest", "Gran Fury", "Grand Voyager", "Horizon", "Laser", "Neon", "Prowler", "Reliant", "Sapporo", "Scamp", "Sundance", "Trailduster", "Voyager"];
};
readonly Pontiac: {
readonly models: readonly ["1000", "6000", "Aztek", "Bonneville", "Catalina", "Fiero", "Firebird", "G3", "G5", "G6", "G8", "Grand Am", "Grand Prix", "GTO", "J2000", "Le Mans", "Montana", "Parisienne", "Phoenix", "Safari", "Solstice", "Sunbird", "Sunfire", "Torrent", "Trans Sport", "Vibe"];
};
readonly Porsche: {
readonly models: readonly ["911", "924", "928", "944", "968", "Boxster", "Carrera GT", "Cayenne", "Cayman", "Panamera"];
};
readonly RAM: {
readonly models: readonly ["1500", "2500", "3500", "4500"];
};
readonly Renault: {
readonly models: readonly ["18i", "Fuego", "Le Car", "R18", "Sportwagon"];
};
readonly "Rolls-Royce": {
readonly models: readonly ["Camargue", "Corniche", "Ghost", "Park Ward", "Phantom", "Silver Dawn", "Silver Seraph", "Silver Spirit", "Silver Spur"];
};
readonly Saab: {
readonly models: readonly ["9-2X", "9-3", "9-4X", "9-5", "9-7X", "900", "9000"];
};
readonly Saturn: {
readonly models: readonly ["Astra", "Aura", "ION", "L100", "L200", "L300", "LS", "LW1", "LW2", "LW200", "LW300", "Outlook", "Relay", "SC1", "SC2", "Sky", "SL", "SL1", "SL2", "SW1", "SW2", "Vue"];
};
readonly Scion: {
readonly models: readonly ["FR-S", "iQ", "tC", "xA", "xB", "xD"];
};
readonly smart: {
readonly models: readonly ["fortwo"];
};
readonly SRT: {
readonly models: readonly ["Viper"];
};
readonly Sterling: {
readonly models: readonly ["825", "827"];
};
readonly Subaru: {
readonly models: readonly ["Baja", "Brat", "BRZ", "Forester", "Impreza", "Impreza WRX", "Justy", "L Series", "Legacy", "Loyale", "Outback", "SVX", "Tribeca", "XT", "XV Crosstrek"];
};
readonly Suzuki: {
readonly models: readonly ["Aerio", "Equator", "Esteem", "Forenza", "Grand Vitara", "Kizashi", "Reno", "Samurai", "Sidekick", "Swift", "SX4", "Verona", "Vitara", "X-90", "XL7"];
};
readonly Tesla: {
readonly models: readonly ["Roadster", "Model S", "Model 3", "Model X", "Model Y", "Cybertruck"];
};
readonly Toyota: {
readonly models: readonly ["4Runner", "Avalon", "Camry", "Celica", "Corolla", "Corona", "Cressida", "Echo", "FJ Cruiser", "Highlander", "Land Cruiser", "Matrix", "MR2", "MR2 Spyder", "Paseo", "Pickup", "Previa", "Prius", "Prius C", "Prius V", "RAV4", "Sequoia", "Sienna", "Solara", "Starlet", "Supra", "T100", "Tacoma", "Tercel", "Tundra", "Van", "Venza", "Yaris"];
};
readonly Triumph: {
readonly models: readonly ["TR7", "TR8"];
};
readonly Volkswagen: {
readonly models: readonly ["Beetle", "Cabrio", "Cabriolet", "CC", "Corrado", "Dasher", "Eos", "Eurovan", "Fox", "GLI", "Golf R", "GTI", "Golf", "Rabbit", "Jetta", "Passat", "Phaeton", "Pickup", "Quantum", "R32", "Routan", "Scirocco", "Taos", "Tiguan", "Touareg", "Vanagon"];
};
readonly Volvo: {
readonly models: readonly ["240", "260", "740", "760", "780", "850", "940", "960", "C30", "C70", "S40", "S60", "S70", "S80", "S90", "V40", "V50", "V70", "V90", "XC60", "XC70", "XC90"];
};
readonly Yugo: {
readonly models: readonly ["GV", "GVC", "GVL", "GVS", "GVX"];
};
};
type Make = keyof typeof data;
/**
* getModels
* Returns all known models from a specific make of car.
* This will return an empty array if the make is not known by this package.
* @param make the name of a make of a car (for example Ford, Toyota, Honda)
* @returns list of models
*/
declare function getModels<T extends Make>(make: T): typeof data[T]['models'];
declare function getModels(make: string): [];
/**
* getMakes
* @returns an array of all of the known makes (for example Ford, Toyota, Honda)
*/
declare function getMakes(): Make[];
export { data, getMakes, getModels };