0.3.0
Binary property list parsing with Deno, courtesy of https://github.com/joeferner/node-bplist-parser
Repository
Current version released
2 years ago
Dependencies
std
deno.land/x/bplist_parser
A Deno port for the
bplist-parser
NPM package. Parses
macOS binary property lists into
equivalent (non-binary) JavaScript values.
Usage
Parsing a bplist file from disk
import {
parseFile,
parseFileSync,
} from "https://deno.land/x/bplist_parser@0.2.0/mod.ts";
const parsed = await parseFile("./path/to/file.bplist");
const parsedSync = parseFileSync("./path/to/file.bplist");
Parsing an in-memory bplist
import { parseBuffer } from "https://deno.land/x/bplist_parser@0.2.0/mod.ts";
const bplist: Uint8Array = await fetchFileSomehow(/*...*/);
const parsed = parseBuffer(data);
This module was adapted from https://github.com/joeferner/node-bplist-parser. The original license can be found in that repo’s README.
All additional work is copyright 2022 Connor Logan. All rights reserved.