@zufan_devops/console package provides a set of utility functions to enhance your JavaScript/Node.js development experience. The functions include logging, clearing the console, getting object keys/values/entries, and displaying arrays.
To install this package, run the following command in your terminal:
npm install @zufan_devops/console --save-dev
import { clear, l, ll, arrayDisplay } from "@zufan_devops/console";
const { clear, l, ll, arrayDisplay } = require("@zufan_devops/console");
// Log a message
l("Hello, world!");
// Clear the console
clear();
// Get keys of an object
let keys = ok({ a: 1, b: 2, c: 3 });
arrayDisplay(keys);
// Get values of an object
let values = ov({ a: 1, b: 2, c: 3 });
arrayDisplay(values);
// Get entries of an object
let entries = oe({ a: 1, b: 2, c: 3 });
arrayDisplay(entries);
// Log a key-value pair
ll("key", "value");