node-chart-exec
Version:
An executable binary for creating charts in Node.js
16 lines • 545 B
JavaScript
const args = require('yargs').argv;
const index = require('./index');
const CommandModel = require('./model/CommandModel');
const cli = async () => {
let type = args.type;
let options = args.options;
let height = args.height;
let width = args.width;
let labels = args.labels
let dataset = args.dataset;
let outputFile = args.outputfile;
let commandModel = new CommandModel(type, options, height, width, labels, dataset, outputFile)
return index.main(commandModel);
};
cli().then(() => {});