-
-
Save parzibyte/e9ab518c333cddd4d2294a122dd71080 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
// Recuerda que debes estar dentro de una función async para usar await | |
const respuestaAlImprimir = await new ConectorPlugin() | |
.texto("Hola mundo\n") | |
.imprimirEn("Mi impresora"); | |
if (respuestaAlImprimir === true) { | |
console.log("Impreso correctamente"); | |
} else { | |
console.log("Error. La respuesta es: " + respuestaAlImprimir); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment