Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created April 24, 2023 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/a6468586b25951575d8d81e3bf5c9bb4 to your computer and use it in GitHub Desktop.
Save parzibyte/a6468586b25951575d8d81e3bf5c9bb4 to your computer and use it in GitHub Desktop.
// Comenzar a diseñar la tabla
let tabla = obtenerLineaSeparadora() + "\n";
const lineasEncabezado = tabularDatos([
{ contenido: "Nombre", maximaLongitud: maximaLongitudNombre },
{ contenido: "Cantidad", maximaLongitud: maximaLongitudCantidad },
{ contenido: "Precio", maximaLongitud: maximaLongitudPrecio },
],
relleno,
separadorColumnas,
);
for (const linea of lineasEncabezado) {
tabla += linea + "\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment