Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/tatut/asar
- Owner: tatut
- License: unlicense
- Created: 2019-03-14T18:14:21.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-15T12:18:45.000Z (almost 6 years ago)
- Last Synced: 2024-09-14T05:29:40.588Z (4 months ago)
- Language: Clojure
- Size: 9.77 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.