@ban12/bplist-parser
v0.0.1
Published
A parser for binary PLIST
Downloads
11
Maintainers
Readme
@ban12/bplist-parser
Install
pnpm add @ban12/bplist-parserUsage
Browser
import { parseBuffer } from '@ban12/bplist-parser'
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 '@ban12/bplist-parser'
const file = await readFile(new URL('file.plist', import.meta.url))
const result = parseBuffer(file.buffer)adapted from node-bplist-parser
