jsflatdeprecated

Flatten/unflatten nested Javascript objects in CLI

Usage no npm install needed!

<script type="module">
  import jsflat from 'https://cdn.skypack.dev/jsflat';
</script>

README

jsflat

Flatten/unflatten nested Javascript objects in CLI

install

npm i -g jsflat

usage

Flatten

cat file.json | jsflat

Unflatten

cat file.json | jsunflat

You can use it with other tools like the awesome jq to syntax-highlight and pull out the bits you want:

Highlight

cat package.json| ./jsflat.js | jq .