JSPM

  • Created
  • Published
  • Downloads 8
  • Score
    100M100P100Q55556F
  • License MIT

Generate Tesla Model S/3/X/Y 3D photo visualizations

Package Exports

  • tesla-images
  • tesla-images/src/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tesla-images) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@teslahunt/title

Last version Coverage Status NPM Status

Generate Tesla Model S/3/X/Y 3D photo visualizations.

Install

$ npm install tesla-images --save

Usage

There are two ways for getting Tesla stock images:

  • Tesla sells some vehicles under CPO terms and they have real pictures of it.
  • Tesla has an internal API for generating a 3D visualization of any vehicle (used by their website).

This library combines both techniques providers, fallbacking one in the other one in case stock images are missing (that is the most probable thing).

const teslaImages = require('tesla-images')

;(async () => {
  const images = await teslaImages({
    vin: '5YJSA7H21FF084652',
    modelLetter: 'S',
    optionCodes: ['ADPX2', 'AU01', 'DA02', 'APH1', 'APD2', 'X028']
  })
})()

License

tesla-images © Tesla Hunt, Released under the MIT License.
Authored and maintained by Tesla Hunt with help from contributors.

teslahunt.io · GitHub teslahunt · Twitter @teslahuntio