unfalcor
A tiny library for making falcor data (JSON Graph) more readable for debugging
Last updated a year ago by uilwen .
Original npm · Tarball · package.json
$ cnpm install unfalcor 
SYNC missed versions from official npm registry.

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

For now...

npm install -g https://github.com/kyle-long/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.

Current Tags

  • 0.0.1                                ...           latest (a year ago)

1 Versions

  • 0.0.1                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (1)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |