Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tatut/asar

Read ASAR archive files from Clojure
https://github.com/tatut/asar

Last synced: 3 months ago
JSON representation

Read ASAR archive files from Clojure

Awesome Lists containing this project

README

        

# asar

[![CircleCI](https://circleci.com/gh/tatut/asar.svg?style=svg)](https://circleci.com/gh/tatut/asar) [![Clojars Project](https://img.shields.io/clojars/v/webjure/asar.svg)](https://clojars.org/webjure/asar)

Read ASAR archive files from Clojure

See: https://github.com/electron/asar

## Usage

The API is very simple. First you `load-asar` from a file. This returns a handle containing a `RandomAccessFile`
and the parsed JSON header.

To access files, call `read-file`, `copy` and `file-info` functions with the previously loaded ASAR handle and the path
within the archive.

## Ring handler

The library contains a Ring handler to serve files from an ASAR archive.
Check out `serve.sh` script to try it locally.