For the complete documentation index, see llms.txt. This page is also available as Markdown.

Getting started

Installation

For a new project

  1. Initialize your project with Yarn or npm:

    yarn init
    # or
    npm init
  2. Add the library to your project:

    npm i @ubidots/ubidots-javascript-library --save-dev
    # or
    yarn add @ubidots/ubidots-javascript-library -D

For existing projects

Go to your project's root directory and run:

npm i @ubidots/ubidots-javascript-library --save-dev
# or
yarn add @ubidots/ubidots-javascript-library -D

Importing the library

Depending on whether your project uses CommonJS or ES Modules, import the library as follows:

CommonJS

ES Modules

Usage

To use this SDK in the HTML Canvas widget, see the dedicated page.

Last updated

Was this helpful?