https://github.com/treasure-data/td-client-node
Node.js Client Library for Treasure Data
https://github.com/treasure-data/td-client-node
Last synced: about 1 year ago
JSON representation
Node.js Client Library for Treasure Data
- Host: GitHub
- URL: https://github.com/treasure-data/td-client-node
- Owner: treasure-data
- License: apache-2.0
- Created: 2013-01-03T23:06:44.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2023-06-24T16:58:29.000Z (almost 3 years ago)
- Last Synced: 2025-04-12T03:17:02.403Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://www.treasuredata.com
- Size: 989 KB
- Stars: 12
- Watchers: 83
- Forks: 15
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: History.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# Node.js Client for Treasure Data
[](https://badge.fury.io/js/td) [](https://www.npmjs.com/package/td) [](https://dl.circleci.com/status-badge/redirect/gh/treasure-data/td-client-node/tree/master) [](https://coveralls.io/github/treasure-data/td-client-node?branch=integrate-coveralls)
## 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.
* Treasure Data website: [https://www.treasuredata.com/](https://www.treasuredata.com/)
* Treasure Data GitHub: [https://github.com/treasure-data/](https://github.com/treasure-data/)
**td-client-node** is a node.js client.
## How to Run
```js
// 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](https://docs.treasuredata.com/articles/rest-api-node-client)
More detail in [API reference](http://treasure-data.github.io/td-client-node/docs/index.html).
## License
Apache Software License, Version 2.0
See [LICENSE file](https://github.com/treasure-data/td-client-node/blob/master/LICENSE).