# bplist-parser

> Binary plist parser.

Latest version **0.5.0** (published 2026-09-05) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.5.0 |
| Published | 2026-09-05 |
| First published | 2012-08-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=20.19.0 |
| Dependencies | 0 |
| Unpacked size | 70 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 115 |
| Author | Joe Ferner |
| Maintainers | joeferner |
| Keywords | bplist, plist, parser |

## Links

- npm: https://www.npmjs.com/package/bplist-parser
- Repository: https://github.com/joeferner/node-bplist-parser
- Issues: https://github.com/joeferner/node-bplist-parser/issues
- npm.io page: https://npm.io/package/bplist-parser

## 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

- 0.5.0 (latest) — 2026-09-05
- 0.3.2 — 2022-05-03
- 0.3.1 — 2021-11-09
- 0.3.0 — 2021-03-08
- 0.2.0 — 2019-07-12
- 0.1.1 — 2015-11-19
- 0.1.0 — 2015-05-18
- 0.0.6 — 2014-10-23
- 0.0.5 — 2014-02-28
- 0.0.4 — 2012-09-08
- 0.0.3 — 2012-08-23
- 0.0.2 — 2012-08-14
- 0.0.1 — 2012-08-06

## README

# bplist-parser

[![CI](https://github.com/joeferner/node-bplist-parser/actions/workflows/ci.yml/badge.svg)](https://github.com/joeferner/node-bplist-parser/actions/workflows/ci.yml)

Binary Mac OS X Plist (property list) parser.

## Installation

```bash
$ npm install bplist-parser
```

## Quick Examples

This package ships both ES module and CommonJS builds, so either import style works.

```javascript
// ESM
import { parseFile } from 'bplist-parser';

const [obj] = await parseFile('myPlist.bplist');
console.log(JSON.stringify(obj));
```

```javascript
// CommonJS
const bplist = require('bplist-parser');

(async () => {
  const [obj] = await bplist.parseFile('myPlist.bplist');
  console.log(JSON.stringify(obj));
})();
```

`parseFileSync` and `parseBuffer` are also exported, and both return an array of
the plist's root objects.

## Limits

The parser refuses plists that would allocate more than `maxObjectSize` bytes or
contain more than `maxObjectCount` objects. Both are readable as exports and
adjusted through setters:

```javascript
import { setMaxObjectSize, setMaxObjectCount } from 'bplist-parser';

setMaxObjectSize(200 * 1000 * 1000);
setMaxObjectCount(65536);
```

> **Note:** before 0.4.0 these were assignable (`bplist.maxObjectSize = n`).
> Exported bindings are read-only in both module systems now, so assignment must
> be replaced with the setters above.

## Requirements

Node.js 20.19 or newer.

## License

(The MIT License)

Copyright (c) 2012 Near Infinity Corporation

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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