2025-03-26 03:15:14 +00:00
# Hyparquet Writer
2025-03-27 06:37:05 +00:00
[](https://www.npmjs.com/package/hyparquet-writer)
2025-03-27 07:27:22 +00:00
[](https://www.npmjs.com/package/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-31 20:42:57 +00:00

2025-04-01 06:32:14 +00:00
[](https://www.npmjs.com/package/hyparquet-writer?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-27 07:27:22 +00:00
const arrayBuffer = parquetWrite({
columnData: [
2025-03-28 23:13:27 +00:00
{ name: 'name', data: ['Alice', 'Bob', 'Charlie'], type: 'STRING' },
{ name: 'age', data: [25, 30, 35], type: 'INT32' },
2025-03-27 07:27:22 +00:00
],
})
2025-03-26 05:36:06 +00:00
```
## References
- https://github.com/hyparam/hyparquet
2025-03-31 21:51:11 +00:00
- https://github.com/hyparam/hyparquet-compressors
2025-03-26 05:36:06 +00:00
- https://github.com/apache/parquet-format
- https://github.com/apache/parquet-testing