
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
json-parquet-merger
Advanced tools
TypeScript CLI tool for merging multiple JSON files of the same format into a single Parquet file
A TypeScript CLI tool that merges multiple JSON files of the same format into a single Parquet file.
# Install globally
npm install -g json-parquet-merger
# Or install locally with pnpm (recommended for development)
pnpm install json-parquet-merger
# Or using npm
npm install json-parquet-merger
# Merge all JSON files in the directory
json-parquet-merger -i ./data -o output.parquet
# Convert a single JSON file
json-parquet-merger -i data.json -o output.parquet
json-parquet-merger [options]
Options:
-i, --input <path> Input directory or file path (required)
-o, --output <path> Output Parquet file path (required)
-p, --pattern <regex> Regular expression for filtering JSON files
--validate Verify that all records have the same schema
-b, --batch-size <number> Batch size for processing records (default: 1000)
-c, --compression <type> Compression type: uncompressed, gzip, snappy, brotli (default: uncompressed)
-V, --version Display version number
-h, --help Display help information
# Pattern filtering
json-parquet-merger -i ./data -o users.parquet -p "user_.*\\.json"
# Run with schema validation enabled
json-parquet-merger -i ./data -o output.parquet --validate
# Custom batch size
json-parquet-merger -i ./data -o output.parquet -b 5000
# With compression
json-parquet-merger -i ./data -o output.parquet -c gzip
# Combined options
json-parquet-merger -i ./data -o output.parquet -p "user_.*\\.json" --validate -b 2000 -c snappy
# Display help
json-parquet-merger --help
# Show version
json-parquet-merger --version
user1.json:
[
{
"id": 1,
"name": "Alice",
"email": "alice@example.com",
"age": 30,
"active": true,
"created_at": "2024-01-15T10:00:00Z"
},
{
"id": 2,
"name": "Bob",
"email": "bob@example.com",
"age": 25,
"active": false,
"created_at": "2024-01-16T10:00:00Z"
}
]
user2.json:
[
{
"id": 3,
"name": "Charlie",
"email": "charlie@example.com",
"age": 35,
"active": true,
"created_at": "2024-01-17T10:00:00Z"
}
]
JSON Type | Parquet Type | Notes |
---|---|---|
string | UTF8 | Text data |
integer | INT64 | Whole numbers |
float | DOUBLE | Decimal numbers |
boolean | BOOLEAN | true/false values |
Date | TIMESTAMP_MILLIS | Date objects |
object/array | UTF8 | Serialized as JSON strings |
The tool supports multiple compression algorithms:
FAQs
TypeScript CLI tool for merging multiple JSON files of the same format into a single Parquet file
The npm package json-parquet-merger receives a total of 20 weekly downloads. As such, json-parquet-merger popularity was classified as not popular.
We found that json-parquet-merger demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.