# reiko-parser

> Read iOS/Android pkg's(.apk/.ipa ) manifest info, for NodeJS.

Latest version **1.0.8** (published 2020-01-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install reiko-parser
pnpm add reiko-parser
yarn add reiko-parser
bun add reiko-parser
```

## 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.0.8 |
| Published | 2020-01-09 |
| First published | 2018-05-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 221.5 KB |
| Known vulnerabilities | 0 (+16 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 16 |
| Author | DosLin |
| Maintainers | doslin |
| Keywords | Javascript, NodeJS, apk, ipa, parser |

## Links

- npm: https://www.npmjs.com/package/reiko-parser
- Repository: https://github.com/JChord/reiko-parser
- Issues: https://github.com/JChord/reiko-parser/issues
- npm.io page: https://npm.io/package/reiko-parser

## Dependencies (5)

- [yauzl](https://npm.io/package/yauzl.md) ^2.10.0
- [buffer](https://npm.io/package/buffer.md) ^5.4.3
- [xmldom](https://npm.io/package/xmldom.md) ^0.1.27
- [bytebuffer](https://npm.io/package/bytebuffer.md) ^5.0.1
- [cgbi-to-png](https://npm.io/package/cgbi-to-png.md) ^1.0.7

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 1.0.8 (latest) — 2020-01-09
- 1.0.7 — 2019-11-14
- 1.0.6 — 2019-11-14
- 1.0.5 — 2019-11-14
- 1.0.4 — 2019-11-14
- 1.0.3 — 2019-11-14
- 1.0.1 — 2019-05-14
- 0.0.12 — 2018-11-26
- 0.0.11 — 2018-11-26
- 0.0.9 — 2018-10-10
- 0.0.8 — 2018-08-16
- 0.0.7 — 2018-07-17
- 0.0.6 — 2018-07-17
- 0.0.5 — 2018-07-17
- 0.0.4 — 2018-06-28
- … 2 more at https://npm.io/package/reiko-parser/versions

## README

# reiko-parser

[![NPM version](https://img.shields.io/npm/v/reiko-parser.svg?style=flat)](https://www.npmjs.com/package/reiko-parser) [![NPM downloads](http://img.shields.io/npm/dm/reiko-parser.svg?style=flat)](https://www.npmjs.com/package/reiko-parser)

Read iOS/Android package's (.apk/.ipa ) manifest info, for NodeJS.

## Introduction
For `.apk`, parse the `AndroidManifest.xml` and `resources.arsc` files, read all values listed in AndroidManifest.xml(both primitive and reference type), also you can get and show the icon of the apk file directly from the parsed result.

For `.ipa`, parse the `info.plist` and `embedded.mobileprovision` files, read all basic information in info.plist file, including the icon of the ipa file(already handled the crushed pngs).

## Acknowledgements
This project is based on [plist.js](https://github.com/TooTallNate/plist.js), [isomorphic-pkg-reader](https://github.com/TencentWSRD/isomorphic-pkg-reader/) & [adbkit-apkreader](https://github.com/openstf/adbkit-apkreader). 

## Install
```
npm install --save reiko-parser
```

## Usage
```js
const PkgReader = require('reiko-parser');

// for apk
const reader = new PkgReader(filePath, 'apk', { withIcon: true });
reader.parse((err, pkgInfo) => {
  if (err) {
    console.error(err);
  } else {
    console.log(pkgInfo); // pkgInfo.icon is encoded to base64
  }
});

 // for ipa
const reader = new PkgReader(filePath, 'ipa', { withIcon: false });
reader.parse((err, pkgInfo) => {
  if (err) {
    console.error(err);
  } else {
    console.log(pkgInfo);
  }
});
```

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