# asar-reader

> Quickly read ASAR files, asynchronously

Latest version **1.1.0** (published 2017-04-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install asar-reader
pnpm add asar-reader
yarn add asar-reader
bun add asar-reader
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2017-04-18 |
| First published | 2017-04-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Ivo Georgiev |
| Maintainers | ivogeorgiev |

## Links

- npm: https://www.npmjs.com/package/asar-reader
- Repository: https://github.com/Ivshti/asar-reader
- Homepage: https://github.com/Ivshti/asar-reader#readme
- Issues: https://github.com/Ivshti/asar-reader/issues
- npm.io page: https://npm.io/package/asar-reader

## Dependencies (2)

- [thunky](https://npm.io/package/thunky.md) ^1.0.2
- [chromium-pickle-js](https://npm.io/package/chromium-pickle-js.md) ^0.2.0

## Recent versions

- 1.1.0 (latest) — 2017-04-18
- 1.0.0 — 2017-04-18

## README

# asar-reader
Quickly read ASAR files, asynchronously

## Usage

### ```var instance = new asarReader(pathToAsar, options)```

**Options**

* **keepOpenFor** - keep the file descriptor open for ms after last used; default is 500 ms

#### ```instance.listFiles(function(err, files) { })```

**files** is an object where the key is the path and the value is the object you have to pass to `instance.readFile`

#### ```instance.readFile(fileObj, function(err, readStream) { })```

#### ```instance.getHeader(function(err, header) { })```

Get raw ASAR header

---
_Source: https://npm.io/package/asar-reader · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
