Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created February 13, 2021 18:28
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/352d1e2d6b1c8d588f6bd0bc9395b736 to your computer and use it in GitHub Desktop.
Save parzibyte/352d1e2d6b1c8d588f6bd0bc9395b736 to your computer and use it in GitHub Desktop.
const URL_IMAGEN_GITHUB = "https://github.com/parzibyte.png",
URL_IMAGEN_LOCAL = "http://localhost/mario.jpg",
RUTA_ABSOLUTA_IMAGEN_LOCAL = "C:\\Users\\Luis Cabrera Benito\\Desktop\\im\\space_invaders.png";
const respuesta = new ConectorPlugin()
.establecerJustificacion(ConectorPlugin.Constantes.AlineacionCentro)
.texto(`Imagen desde URL ${URL_IMAGEN_GITHUB}\n`)
.imagenDesdeUrl(URL_IMAGEN_GITHUB)
.feed(1)
.texto(`Imagen desde URL pero local (${URL_IMAGEN_LOCAL})\n`)
.imagenDesdeUrl(URL_IMAGEN_LOCAL)
.feed(1)
.texto(`Imagen dentro del sistema de archivos (${RUTA_ABSOLUTA_IMAGEN_LOCAL})\n`)
.imagenLocal(RUTA_ABSOLUTA_IMAGEN_LOCAL)
.feed(4)
.imprimirEn("ZJ-58")
.then(respuesta => {
console.log("La respuesta es: ", respuesta);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment