Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Last active February 8, 2021 23: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/ed693f44c114f960d23d377db4af3bbf to your computer and use it in GitHub Desktop.
Save parzibyte/ed693f44c114f960d23d377db4af3bbf to your computer and use it in GitHub Desktop.
const conector = new ConectorPlugin();
conector.texto("Hola mundo\n");
conector.imprimirEn("Mi impresora")
.then(respuestaAlImprimir => {
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