td

0.4.0 • Public • Published

Node.js Client for Treasure Data

npm version Dependency Status Circle CI 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.

Readme

Keywords

none

Package Sidebar

Install

npm i td

Weekly Downloads

1,163

Version

0.4.0

License

Apache-2.0

Unpacked Size

228 kB

Total Files

21

Last publish

Collaborators

  • jyuan
  • lewuathe
  • exoego