Socket
Book a DemoInstallSign in
Socket

td

Package Overview
Dependencies
Maintainers
4
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

td

Node.js client for Treasure Data

0.5.0
latest
Source
npmnpm
Version published
Weekly downloads
69
-4.17%
Maintainers
4
Weekly downloads
 
Created
Source

Node.js Client for Treasure Data

npm version Dependency Status CircleCI Coverage Status

Overview

Many web/mobile applications generate huge amount of event logs (c,f. login, logout, purchase, follow, etc). Analyzing these event logs can be quite valuable for improving services. However, analyzing these logs easily and reliably is a challenging task.

Treasure Data Cloud solves the problem by having: easy installation, small footprint, plugins reliable buffering, log forwarding, the log analyzing, etc.

td-client-node is a node.js client.

How to Run

// Client class is exposed with the name TDClient
var TDClient = require('td').TDClient;
var client = new TDClient('TREASURE_DATA_API_KEY');

var fnPrint = function(err, results) {
  console.log(results);
};

client.listDatabase(function(err, results) {
  for (var i = 0; i < results.databases.length; i++) {
    client.listTables(results.databases[i].name, fnPrint);
  }
});

Requirements

node.js >= 4.8.4

Install

npm install td

Generate JSDoc site

make site

Test

make test

Examples

Please see: https://docs.treasuredata.com/articles/rest-api-node-client

More detail in API reference.

License

Apache Software License, Version 2.0

See LICENSE file.

FAQs

Package last updated on 13 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.