Getting started
Installation
For a new project
Initialize with Yarn or npm:
yarn init # or npm initAdd 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 -DImporting the library
Depending on whether your project uses CommonJS or ES Modules, import the library as follows:
CommonJS
ES Modules
Usage
Last updated
Was this helpful?