Last active
August 27, 2018 12:50
-
-
Save 1f0/4dee9a68252680a322329412949756a5 to your computer and use it in GitHub Desktop.
download anything use blob in console
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
content = JSON.stringify(SOMETHING); | |
blob = new Blob([content],{type:"octet/stream"}); | |
url = window.URL.createObjectURL(blob); | |
console.log(url); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment