bplist-parser-pure
v0.0.2
Published
A parser for binary PLIST, no TextEncoder
Maintainers
Readme
bplist-parser-pure
Ported from [https://github.com/ban12-project/0x00/blob/main/packages/bplist-parser]
Install
pnpm add bplist-parser-pureUsage
Browser
import { parseBuffer } from 'bplist-parser-pure'
const buffer = await fetch('https://example.com/file.plist').then((r) =>
r.arrayBuffer(),
)
const result = parseBuffer(buffer)Node.js
import { readFile } from 'fs/promises'
import { parseBuffer } from 'bplist-parser-pure'
const file = await readFile(new URL('file.plist', import.meta.url))
const result = parseBuffer(file.buffer)adapted from node-bplist-parser
