Liking cljdoc? Tell your friends :D

asar.core

Read ASAR archive

Read ASAR archive
raw docstring

copyclj

(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.
sourceraw docstring

file-infoclj

(file-info {:keys [header]} path)

Get info on the file denoted by path.

Get info on the file denoted by path.
sourceraw docstring

list-filesclj

(list-files {:keys [header]})

List the contents of the asar archive.

List the contents of the asar archive.
sourceraw docstring

load-asarclj

(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.
sourceraw docstring

piped-input-streamclj

source

read-fileclj

(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.
sourceraw docstring

ring-handlerclj

(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.
sourceraw docstring

transform-headerclj

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close