Nightly Procrastination Machine

    tesla-inventory

    3.0.59 • Public • Published


    Last version NPM Status

    Retrieve real-time data from Tesla Inventory.

    Install

    $ npm install tesla-inventory --save

    Usage

    const teslaInventory = require('tesla-inventory')
    
    teslaInventory('fr', {
      model: 's',
      condition: 'used'
    }).then(results => console.log(results))

    API

    teslaInventory(inventory, [query], [gotOpts])

    inventory

    Required
    Type: string

    The Tesla Inventory identifier, see inventories.

    query

    Type: object

    The query options to be passed agaisnt Tesla Inventory API.

    These options can be:

    • arrangeby: Price
    • condition: used|new
    • model: ms|mx|m3
    • order: asc|desc

    License

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

    teslahunt.io · GitHub teslahunt · Twitter @teslahuntio

    Install

    npm i tesla-inventory

    DownloadsWeekly Downloads

    565

    Version

    3.0.59

    License

    MIT

    Unpacked Size

    44 kB

    Total Files

    25

    Last publish

    Collaborators

    • kikobeats