# @yama-dev/data-collector

> Extract data from yaml, json, xml files.

Latest version **0.6.0** (published 2020-12-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install @yama-dev/data-collector
pnpm add @yama-dev/data-collector
yarn add @yama-dev/data-collector
bun add @yama-dev/data-collector
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.6.0 |
| Published | 2020-12-21 |
| First published | 2020-12-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 10.1 KB |
| Known vulnerabilities | 0 (+6 in 2 direct dependencies) |
| Install scripts | no |
| Author | @yama-dev |
| Maintainers | yama-dev |

## Links

- npm: https://www.npmjs.com/package/@yama-dev/data-collector
- npm.io page: https://npm.io/package/@yama-dev/data-collector

## Dependencies (3)

- [marked](https://npm.io/package/marked.md) ^1.2.6
- [js-yaml](https://npm.io/package/js-yaml.md) ^3.14.0
- [fast-xml-parser](https://npm.io/package/fast-xml-parser.md) ^3.17.5

## Recent versions

- 0.6.0 (latest) — 2020-12-21
- 0.5.0 — 2020-12-11
- 0.4.0 — 2020-12-11
- 0.3.0 — 2020-12-10

## README

# data-collector

Extract data from yaml, json, xml files.

## Install

``` bash
npm install --save-dev @yama-dev/data-collector
```

## Use

make data file.

``` bash
ls
# /project-root/
#   └─ data
#     ├── 20200101.yaml # yaml
#     ├── 20200201.json # json
#     └── 20200301.xml  # xml
```

``` javascript
import dataCollector from '@yama-dev/data-collector';

let options = {
  data: 'data', // Directory where data is stored.
  order: 'DESC', // Sort. DESC or ASC
  orderby: 'date', // Sort. property-name.
};

dataCollector(options);
```

## Licence

[MIT](https://mit-license.org/)

<br>

## Author

[yama-dev](https://github.com/yama-dev)

---
_Source: https://npm.io/package/@yama-dev/data-collector · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
