We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 569c1ed + 302839b commit a369dddCopy full SHA for a369ddd
packages/perspective-cli/src/js/index.js
@@ -29,7 +29,7 @@ async function convert(filename, options) {
29
try {
30
file = JSON.parse(file);
31
} catch {}
32
- let tbl = table(file);
+ let tbl = await table(file);
33
let view = await tbl.view();
34
let out;
35
options.format = options.format || "arrow";
@@ -73,7 +73,7 @@ async function host(filename, options) {
73
const server = new WebSocketServer({assets: files, port: options.port});
74
let file;
75
if (filename) {
76
- file = table(fs.readFileSync(filename).toString());
+ file = await table(fs.readFileSync(filename).toString());
77
} else {
78
file = await read_stdin();
79
}
0 commit comments