> ## Documentation Index
> Fetch the complete documentation index at: https://knowledge.cloudquant.com/llms.txt
> Use this file to discover all available pages before exploring further.

# JavaScript SDK Getting Started

> Installation guide and prerequisites for using the CloudQuant Data Liberator NodeJS module.

# JavaScript SDK getting started

The CloudQuant Data Liberator NodeJS module provides promise-based access to CloudQuant datasets.

## Installation

Install the `liberator_module` package in your NodeJS project.

## Required security files

Place the following file from your Downloads ZIP in your working directory:

* **`liberator.json`** — Contains your Username and Token

## Quick start

```javascript theme={null}
const liberator = require('liberator_module').liberator;
const fs = require('fs');

let credentials = {
    user:  JSON.parse(fs.readFileSync('liberator.json')).user,
    token: JSON.parse(fs.readFileSync('liberator.json')).token,
};

liberator.set_default("query", credentials);

let params = {
    as_of:   "2021-01-12 23:59:59",
    back_to: "2021-01-12 00:00:00",
    symbols: "AAPL",
    name:    "daily_bars",
};

liberator.query(params).then(function(results) {
    console.log(results);
});
```

<Note>
  Different datasets have varying update frequencies. Some datasets (like earnings reports) update quarterly, while others update intraday. Time series queries may return limited results depending on data availability.
</Note>
