Created
January 21, 2018 14:15
-
-
Save comnik/835340e718a6fbd8d1256ce54a49aada to your computer and use it in GitHub Desktop.
Helper to export lots of data from a CLJS web-app, as a downloadable file.
This file contains hidden or 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
(defn spit-url [content] | |
(let [blob (js/Blob. (js/Array. content) {:type "text/plain;charset=utf-8"})] | |
(.createObjectURL js/URL blob))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment