Getting started

Installation

For a new project

  1. Initialize with Yarn or npm:

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

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

For existing projects

Go to the 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, refer to its dedicated page.

Last updated

Was this helpful?