open-index/open-npm huggingface dataset:
npm package: @stilvoll/fluid-scale
Description: A simple tool to help with generating `clamp` values for font-size (and spacing values) that scale seamlessly with the viewport.
Latest version: 0.0.8

# Fluid Scale

A simple tool to help with generating `clamp` values for font-size (and spacing values) that scale seamlessly with the viewport.

Meant to be used in code generation workflows.

## What it does

```js
import { createFluid } from '@stilvoll/fluid-scale';

const { fluid } = createFluid({
  minViewport: '320px',
  maxViewport: '1600px',
  baseFontSize: '16px',
});

const textMd = fluid('18px', '24px');
```
npm package: @stilyng94/athena-query-client
Description: An Athena client to query data from Athena utilizing Aws-S3 or direct results from Athena query
Author: Paul Osei Kofi
Latest version: 1.2.1

**athena-query-client**

# @stilyng94/athena-query-client

A lightweight client library for executing Amazon Athena queries.

## Installation

```bash
npm install @stilyng94/athena-query-client
```

### !!Notice

Ensure aws `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` envs are set

### Usage

## Get query results via S3 and write to JsonFile

```typescript
import {
  AthenaQueryClient,
  S3QueryResultProcessor,
  JsonFileAppender,
} from "@stilyng94/athena-query-client";

const athenaQuery = "SELECT * from api_logs";

const execute = async (query: string) => {
  const athena = new AthenaQueryClient({
    Catalog: "catalog",
    Database: "logs",
    ClientConfig: { region: "us-west-2" },
    WorkGroup: "primary",
    s3OutputLocation: "s3://results/queries",
    s3Region: "us-west-2",
  });

  const queryExecutionId = await athena.query(query);

  const jsonFileAppender = new JsonFileAppender({
    directory: "",
    fileName: "",
  });

  const s3QueryResultProcessor = new S3QueryResultProcessor({
    s3OutputLocation: "s3://results/queries",
    s3Region: "us-west-2",
    batchSize: 999,
    onData: async (data) => {
      await jsonFileAppender.flush(data);
    },
    onComplete: async () => {
      await jsonFileAppender.closeFileWithBracket();
    },
  });
  s3QueryResultProcessor
    .processResults(queryExecutionId)
    .catch((error) => console.error(error));
};

execute(athenaQuery).catch(console.error);
```

## Get query results and map to Js object

```typescript
import {
  AthenaQueryClient,
  MappedQueryResultProcessor,
} from "@stilyng94/athena-query-client";

const athenaQuery = "SELECT * from api_logs";

const execute = async (query: string) => {
  const athena = new AthenaQueryClient({
    Catalog: "catalog",
    Database: "logs",
    ClientConfig: { region: "us-west-2" },
    WorkGroup: "primary",
    s3OutputLocation: "s3://results/queries",
    s3Region: "us-west-2",
  });

  const queryExecutionId = await athena.query(query);

  const mappedQueryResultProcessor = new MappedQueryResultProcessor({
    athenaClient: athena,
  });
  mappedQueryResultProcessor.processResults(queryExecutionId).then((data) => {
    console.log(data);
  });
};

execute(athenaQuery).catch(console.error);
```