Skip to content

Silly debug utility that takes some of the fluff out of JSON Graph

License

Notifications You must be signed in to change notification settings

kyle-long/unfalcor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unfalcor

Silly debug utility that takes some of the fluff out of JSON Graph

This should not be used for any production code

This only works with node leaf types of "atom"

Install

npm install -g unfalcor

Usage

unfalcor file.json
# or
cat file.json | unfalcor

You can also use it as a library.

const unfalcor = require('unfalcor');


fs.readFile(fileName, (err, content) => {
    const obj = JSON.parse(content);
    const processedObject = unfalcor(obj);
    
    // Log the result and make it pretty.
    console.log(JSON.stringify(processedObject, null, 4));
});

Why?

JSON Graph is great. I just wanted an easier way to read it for debugging purposes.

About

Silly debug utility that takes some of the fluff out of JSON Graph

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published