in src/commands/jsonToGraph.ts [6:19]
export function jsonToGraphCmd(
inputFile: string,
templateFile: string,
graphConfigFile: string
) {
const inputJSON = fs.readJSONSync(inputFile) as any[];
const template = fs.readFileSync(templateFile, { encoding: 'utf-8' });
const graphConfig = fs.readJsonSync(graphConfigFile);
jsonToGraph(inputJSON, template, graphConfig, err => {
if (err) {
console.log(err.message);
}
});
}