tesla-images

1.6.1 • Public • Published
@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

Package Sidebar

Install

npm i tesla-images

Weekly Downloads

3

Version

1.6.1

License

MIT

Unpacked Size

10.2 kB

Total Files

5

Last publish

Collaborators

  • kikobeats