# parquetscraper

> Simple command line tool to read parquet files

Latest version **0.0.2** (published 2018-09-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install parquetscraper
pnpm add parquetscraper
yarn add parquetscraper
bun add parquetscraper
```

Provides the command `parquetscraper`.

## Health

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

Positive: no vulnerabilities.

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

Negative: insecure dependencies; abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2018-09-05 |
| First published | 2018-09-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 6.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Simon Ismair |
| Maintainers | aletheios |
| Keywords | parquet, json, parser, reader, cli |

## Links

- npm: https://www.npmjs.com/package/parquetscraper
- Repository: https://github.com/Aletheios/parquetscraper
- Homepage: https://github.com/Aletheios/parquetscraper#readme
- Issues: https://github.com/Aletheios/parquetscraper/issues
- npm.io page: https://npm.io/package/parquetscraper

## Dependencies (4)

- [jsome](https://npm.io/package/jsome.md) 2.5.0
- [yargs](https://npm.io/package/yargs.md) 12.0.1
- [parquetjs](https://npm.io/package/parquetjs.md) git://github.com/Aletheios/parquetjs.git
- [is-plain-object](https://npm.io/package/is-plain-object.md) 2.0.4

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.0.2 (latest) — 2018-09-05
- 0.0.1 — 2018-09-05

## README

# Parquet Scraper

**Simple command line tool to read `.parquet` files**

## Installation

Install a current version of [Node.js](https://nodejs.org). Then run...

```bash
npm install -g parquetscraper
```

## Usage

**`parquetscraper [command] [filename] [options]`**

### Available commands
* `read`: Read file contents.
* `schema`: Get parquet schema.
* `rows`: Get number of contained rows.

Results are printed to the console by default if the `--export` option isn't used.

### Available options
* `--export`: Write extracted JSON to a file (only `read` and `schema` commands).
* `--from=[index]`: Start reading rows at the given index (only `read` command).
* `--to=[index]`: Read rows until the given index (only `read` command).

### Examples
```bash
# Read a parquet file and export its contents to a JSON file.
parquetscraper read path/to/file.parquet --export

# Read a parquet file and print a subset of the contents to the console.
parquetscraper read path/to/file.parquet --from=42 --to=84

# Get the schema of a parquet file and write it to a JSON file.
parquetscraper schema path/to/file.parquet --export

# Get the number of rows contained in the parquet file and print it to the console.
parquetscraper rows path/to/file.parquet
```

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