open-index/open-npm huggingface dataset:
npm package: @tago-io/builder
Description: TagoIO Builder Node.JS
Author: Tago LLC
Latest version: 4.0.1

# TagoIO - Analysis Builder for JavaScript and TypeScript

> TagoIO provides easy connection of electronic devices with external data to driver smarter decisions using contextual analysis.

## Description

When you are programming, it can be useful to use other packages inside your code; or you may want to organize your project using require and sub-folders.

| what                  | where                       |
| --------------------- | --------------------------- |
| TagoIO website        | <https://tago.io>           |
| General documentation | <https://docs.tago.io>      |
| Forum / Community     | <https://community.tago.io> |

## Installation

```bash
npm install -g @tago-io/builder
```

## Quick Example

Build with custom output file:

```bash
analysis-builder myAnalysis.js myAnalysis.tago-io.js
```

Build without custom output file, he output will be `myAnalysis.tago-io.js`:

```bash
analysis-builder myAnalysis.js
```

Build without custom output file and using TypeScript, the output will be `myAnalysis.tago-io.js`:

```bash
analysis-builder myAnalysis.ts # for typescript
```

## Helper

```text
Usage: analysis-builder [options] <input_file> [output_file]

Arguments:
  input_file           Original file to make build, can be a javascript or typescript file
  output_file          [optional] Destination name

Options:
  -V, --version        output the version number
  --legacy             use legacy behavior - exclude modules that already exist on TagoIO context (default: false)
  --removeBanner       Remove banner on output file (default: false)
  --obfuscate          Make the output file hard to understand (default: false)
  -w, --watch          Enabling watch mode on Analysis Build, it's listen for changes on the file system and to rebuild whenever a file changes (default: false)
  --tsconfig           Generate a tsconfig.json file on current folder
  -h, --help           display help for command
```

## License

TagoIO Builder is released under the [Apache-2.0 License](https://github.com/tago-io/analysis-builder-js/blob/master/LICENSE.md).
npm package: @tago-io/custom-widget
Description: TagoIO Toolkit to build your own widgets
Author: Tago LLC
Latest version: 1.1.0

# TagoIO Toolkit to build your own widgets
Create your amazing widgets and run it inside TagoIO admin.

### How to install?

The simplest way to use is to add the <script> direct on your project.
```html
<script src="https://admin.tago.io/dist/custom-widget.min.js"></script>
<link rel="stylesheet" href="https://admin.tago.io/dist/custom-widget.min.css"> <!-- OPTIONAL -->
```

Also, you can add it on your project to use with webpack
```bash
$ npm install @tago-io/custom-widget --save
```

On top of your entry component
```javascript
import "@tago-io/custom-widget";
import "@tago-io/custom-widget/dist/custom-widget.css"; // OPTIONAL
```

### Projects Examples

- [Boilerplate](https://github.com/tago-io/custom-widget-boilerplate): Basic boilerplate project using preact, it shows the basic usage of the TagoIO Custom Widget.

- [SendData Widget](https://github.com/tago-io/custom-widget-example-send-data): Simple example demonstrating how to send data from your Custom Widget to TagoIO.

- [Wizard Widget](https://github.com/tago-io/custom-widget-example-wizard): Demo showing a wizard built using TagoIO's Custom Widget.
npm package: @tago-io/sdk
Description: TagoIO SDK for JavaScript in the browser and Node.js
Author: TagoIO Inc.
Latest version: 12.2.2

<br/>
<p align="center">
  <img src="https://assets.tago.io/tagoio/sdk.png" width="250px" alt="TagoIO"></img>
</p>

# TagoIO - JavaScript SDK
> TagoIO provides easy connection of electronic devices with external data to drive smarter decisions using contextual analysis. Supports Node.js, Browser, Deno, and Bun environments.

## Help

Official TagoIO SDK for JavaScript. Works across all major JavaScript runtimes and environments.

| what                  | where                    |
|-----------------------|--------------------------|
| TagoIO website        | https://tago.io           |
| SDK documentation     | https://js.sdk.tago.io    |
| General documentation | https://docs.tago.io      |

## Installation

### Node.js & Bun
```bash
npm install @tago-io/sdk
```

### Deno
```bash
deno add @tago-io/sdk
```

## Quick Example
#### Insert Device Data
```javascript
// ESM (recommended)
import { Device } from "@tago-io/sdk";

// CommonJS
// const { Device } = require("@tago-io/sdk");

const myDevice = new Device({ token: "00000000-2ec4-11e6-a77d-991b8f63b767" });

const myData = {
  variable: "temperature",
  location: { lat: 42.2974279, lng: -85.628292 },
  time: new Date(),
  unit: "C",
  value: 63,
};

async function sendMyData() {
  const result = await myDevice.sendData(myData);

  console.log(result);
  // 1 Data Added
}

async function getMyData() {
  const result = await myDevice.getData({ variables: ["temperature"], query: "last_item" });

  console.info("Current Temperature is:", result[0] ? result[0].value : "N/A");
  // Current Temperature is: 63
}

// -> See full documentation at: https://js.sdk.tago.io/
```

## Runtime Compatibility

| Runtime | ESM | CommonJS | Version |
|---------|-----|----------|---------|
| Node.js | ✓   | ✓        | 20+     |
| Browser | ✓   | -        | Modern  |
| Deno    | ✓   | -        | 2.0+    |
| Bun     | ✓   | ✓        | 1.0+    |

## License

TagoIO SDK for JavaScript in the browser and Node.js is released under the [Apache-2.0 License](https://github.com/tago-io/tago-sdk-js/blob/master/LICENSE.md).