Skip to content

A node.js program for converting a json file to a csv file. Uses no external dependencies. Written synchronously for easy readability and customization.

License

Notifications You must be signed in to change notification settings

daveboivin/json-to-csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

json-to-csv

A node.js program for converting a JSON-ish file to a csv file.

Uses no external dependencies and is written synchronously for easy readability and customization.

Input:

a JSON-ish file in the format of one valid JSON object per line with each line separated by a new line

example input file test.json:

{"1": 1, "2": 2, "3": 3, "hello1": "hello1", "hello2": {"a": "a"}}
{"a": "a", "b":  "b", "c":  "c"}
Output:

example output file generated test.csv:

1, 2, 3, hello1, {"a":"a"}
a, b, c

About

A node.js program for converting a json file to a csv file. Uses no external dependencies. Written synchronously for easy readability and customization.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published