-
-
Save parzibyte/352d1e2d6b1c8d588f6bd0bc9395b736 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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