Skip to content

Flatten JSON files to CSV without a predefined schema.

Notifications You must be signed in to change notification settings

ablimit/JSON-to-CSV

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

JSON-to-CSV converter

This is a stand alone NodeJS script that flattens a JSON file to CSV format. It does not require a schema definition a priori. However, it does assume that the JSON file is of consistent format throughout. If not, the produced CSV will be wrong.

More details here.

Prerequisites

You will need the traverse package.

npm install traverse

Usage:

node convertJsonToCsv.js /path/to/input/file.json

Produced CSV will be pushed to stdout.

About

Flatten JSON files to CSV without a predefined schema.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published