Nodejs Cheat Sheet
Random tidbits
console.table is great for debugging API responses, database rows, or CLI output. Pass it an array of objects and it renders a formatted table in your terminal instead of a nested object dump. There's an optional second argument to filter columns: console.table(users, ["name"]).
const users = [
{ name: "Alice", role: "admin" },
{ name: "Bob", role: "editor" },
{ name: "Carol", role: "viewer" },
];
console.table(users);