# wistroni40-es-flatter

> wistron i40 elasticsearch aggregations

Latest version **1.0.2** (published 2021-10-14) · ISC license · 0 weekly downloads

## Install

```sh
npm install wistroni40-es-flatter
pnpm add wistroni40-es-flatter
yarn add wistroni40-es-flatter
bun add wistroni40-es-flatter
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2021-10-14 |
| First published | 2021-02-23 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 60.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Steve Y Lin |
| Maintainers | steveylin |
| Keywords | wistron, i40, elasticsearch |

## Links

- npm: https://www.npmjs.com/package/wistroni40-es-flatter
- Repository: https://github.com/SteveLin100132/wistroni40-es-flatter
- Homepage: https://github.com/SteveLin100132/wistroni40-es-flatter#readme
- Issues: https://github.com/SteveLin100132/wistroni40-es-flatter/issues
- npm.io page: https://npm.io/package/wistroni40-es-flatter

## Dependencies (3)

- [rxjs](https://npm.io/package/rxjs.md) ^6.6.3
- [elastic-builder](https://npm.io/package/elastic-builder.md) ^2.11.0
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) ^7.11.0

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2021-10-14
- 1.0.1 — 2021-02-23
- 1.0.0 — 2021-02-23

## README

# wistroni40-es-flatter

# Install

```
npm i wistroni40-es-flatter --save
```

# Table of Contents

- [Quickstart](#quickstart)
- [Feature](#feature)
- [API](#api)
  - [ElasticSearchAggsFlatter](#BnElasticSearchAggsFlatterftTemplate)

# Quickstart

index.ts

```typescript
const flattedResult = new ElasticSearchAggsFlatter(result).getBody<any>();
```

[Full Example](https://github.com/SteveLin100132/wistroni40-es-flatter/blob/master/examples/index.ts)

# Feature

* 將查詢到的ElasticSearch Aggregations扁平化

# API

## **ElasticSearchAggsFlatter**

**Abstract Class**，ElasticSearch聚合資料攤平工具

### constructor

建構值

Parameter | Type | Required | Default | Description
|:-----|:-----:|:-----:|:-----:|:-----|
| data | any | Required | ```undefined``` | 要扁平化的聚合數據 |

### Methods

#### getBody

取得扁平化後的資料內容

Parameter | Type | Required | Default | Description
|:-----|:-----:|:-----:|:-----:|:-----|
| returns | T | Required | ```undefined``` | 回傳扁平化後的資料內容 |

---
_Source: https://npm.io/package/wistroni40-es-flatter · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
