Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/perspective-cli/src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async function convert(filename, options) {
try {
file = JSON.parse(file);
} catch {}
let tbl = table(file);
let tbl = await table(file);
let view = await tbl.view();
let out;
options.format = options.format || "arrow";
Expand Down Expand Up @@ -73,7 +73,7 @@ async function host(filename, options) {
const server = new WebSocketServer({assets: files, port: options.port});
let file;
if (filename) {
file = table(fs.readFileSync(filename).toString());
file = await table(fs.readFileSync(filename).toString());
} else {
file = await read_stdin();
}
Expand Down