Read ASAR archive
Read ASAR archive
(copy {:keys [header file offset]} path to)
Copy the contents of the file denote by path to the given output stream.
Copy the contents of the file denote by path to the given output stream.
(file-info {:keys [header]} path)
Get info on the file denoted by path.
Get info on the file denoted by path.
(list-files {:keys [header]})
List the contents of the asar archive.
List the contents of the asar archive.
(load-asar file)
Load an ASAR archive and read the header. Returns an ASAR record instance that can be used to access the files contained in the archive.
Load an ASAR archive and read the header. Returns an ASAR record instance that can be used to access the files contained in the archive.
(read-file {:keys [header file offset]} path)
Read the contents of the file denoted by path. Returns a byte array with the contents or nil if the file is not found in the archive.
Read the contents of the file denoted by path. Returns a byte array with the contents or nil if the file is not found in the archive.
(ring-handler asar-file path)
Returns a ring handler for serving files from an ASAR archive.
Returns a ring handler for serving files from an ASAR archive.
(transform-header header)
(transform-header path {files "files" :as header})
Turn header into a mapping from file path to size and offset.
Turn header into a mapping from file path to size and offset.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close