view - Oppenjaimer/LbelDB.js GitHub Wiki
view()
Display the data from local memory in the form of a table.
Returns: void
Example:
/*
dbs.lbel:
id
user
age
employed
dat.lbel:
10001
Jaime
28
false
*/
const ldb = require("lbeldb");
ldb.retrieve(); // Labels: ["id", "user", "age", "employed"], Rows: [ ["10001", "Jaime", "28", "false"] ]
ldb.view(); // Output below
Output:
(index) | id | user | age | employed |
---|---|---|---|---|
0 | "10001" | "Jaime" | "28" | "false" |