(encode-file data filetype)
Encode a stringified text file such that it can be downloaded by the browser. Results must be stringified - don't pass objects / vectors / arrays / whatever.
Encode a stringified text file such that it can be downloaded by the browser. Results must be stringified - don't pass objects / vectors / arrays / whatever.
(set-download-link-properties results file-type)
We're setting the attributes of a link with the download property enabled, then clicking it programatically. This spawns a nice download without having to create a new window which might be pop-up blocked. It also allows us to set the filename. We live in the future!
We're setting the attributes of a link with the download property enabled, then clicking it programatically. This spawns a nice download without having to create a new window which might be pop-up blocked. It also allows us to set the filename. We live in the future!
(stringify-query-results file-type query-results)
converts results into a csv/tsv-style string.
converts results into a csv/tsv-style string.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close