flatten-cli

A simple command-line utility that flattens and unflattens JSON. A useful first step if you want to turn JSON into CSV or if you'd like to insert JSON into a database table.

Usage no npm install needed!

<script type="module">
  import flattenCli from 'https://cdn.skypack.dev/flatten-cli';
</script>

README

Flatten

A simple command-line utility that flattens and unflattens JSON. A useful first step if you want to turn JSON into CSV or if you'd like to insert JSON into a database table.

Anything that cannot easily be flattened (hashes and arrays) will be serialized to a JSON string.