1.0.7 • Published 8 months ago

jtocsv v1.0.7

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
8 months ago

Jtocsv (JSON to CSV parser)

CI

Jtocsv is an npm package that reads the JSON files from a folder path, parses and flattens the data and combines the data in the output CSV file. It provides flexibility through command-line arguments. CSV headers are formed on flattened JSONs keys.

Installation

npm install -g jtocsv

Usage

jtocsv [options]

Command-Line Options

  • path: (Required) Path to the folder containing JSON files (objects or JSON arrays).

  • path: (Required) Path to the output CSV file.

Examples

Read all JSON files and save the parsed data to CSV file:

jtocsv /path/to/jsons /path/to/output.csv

Inline

import { saveJSONSToCSV } from 'jtocsv/parser.js'
await saveJSONSToCSV('json_path', 'csv_path')

Contributing

Contributions are welcome!

1.0.7

8 months ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago