This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

tinybird.js

2.1.0 • Public • Published
Tinybird

Tinybird.js

A library for managing your Tinybird Tokens, Data Sources and Pipes.

npm downloads per month
MIT License


Tinybird Analytics allows you to build Real-time APIs at scale for your existing Data Sources.

💎 Examples

🚀 Installation

NPM

NPM is the recommended installation method. It pairs nicely with a CommonJS module bundler such as Webpack or Browserify.

# npm
npm i --save tinybird.js

# Yarn
yarn add tinybird.js

CDN

Instead of downloading, you can use our CDN to access files directly.

<script src="https://cdn.tinybird.co/v1/tinybird.js"></script>

🖲 Usage

Install and import the Tinybird as an ES module and start using it.

import Tinybird from 'tinybird.js';

const tinyb = Tinybird(YOUR_AUTH_TOKEN)
const res = tinyb.query('SELECT * FROM your_data_source LIMIT 3')
  .then(function (res) {
    console.log(res.data[0])
    console.log(`query time: ${res.statistics.elapsed}`)
  })

🗒 Docs

You can discover how to use the library in the official documentation.

📝 License

MIT

Package Sidebar

Install

npm i tinybird.js

Weekly Downloads

15

Version

2.1.0

License

MIT

Unpacked Size

475 kB

Total Files

10

Last publish

Collaborators

  • sdairs
  • dmytro-tinybird
  • alejandromav
  • xavijam
  • jamedina
  • ivanmalagon