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.
raw docstring

file-infoclj

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

Get info on the file denoted by path.

Get info on the file denoted by path.
raw docstring

list-filesclj

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

List the contents of the asar archive.

List the contents of the asar archive.
raw 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.
raw docstring

piped-input-streamclj


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.
raw 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.
raw 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.
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close