2025-03-26 03:15:14 +00:00
# Hyparquet Writer
2025-03-26 07:45:22 +00:00
[](https://github.com/hyparam/hyparquet-writer/actions)
2025-03-26 03:15:14 +00:00
[](https://opensource.org/licenses/MIT)
2025-03-26 05:36:06 +00:00

2025-03-26 07:45:22 +00:00
[](https://www.npmjs.com/package/hyparquet?activeTab=dependencies)
2025-03-26 05:36:06 +00:00
## Usage
2025-03-26 07:45:22 +00:00
Call `parquetWrite` with a list of columns, each column is an object with a `name` and `data` field. The `data` field should be an array of same-type values.
2025-03-26 05:36:06 +00:00
```javascript
2025-03-26 07:45:22 +00:00
import { parquetWrite } from 'hyparquet-writer'
2025-03-26 05:36:06 +00:00
2025-03-26 07:45:22 +00:00
const arrayBuffer = parquetWrite([
{ name: 'name', data: ['Alice', 'Bob', 'Charlie'] },
{ name: 'age', data: [25, 30, 35] },
])
2025-03-26 05:36:06 +00:00
```
## References
- https://github.com/hyparam/hyparquet
- https://github.com/apache/parquet-format
- https://github.com/apache/parquet-testing