-
-
Save parzibyte/a35a620f6aba958b37eb0b47d7205b66 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 guardarArchivoDeTexto = (contenido, nombre) => { | |
const a = document.createElement("a"); | |
const archivo = new Blob([contenido], { type: 'text/plain' }); | |
const url = URL.createObjectURL(archivo); | |
a.href = url; | |
a.download = nombre; | |
a.click(); | |
URL.revokeObjectURL(url); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment