node-bplist-parser
node-bplist-parser copied to clipboard
Support both bplist and xml plist
you can read file as buffer, then check
const bPlistMagic = Buffer.from('bplist')
const content = fs.readFileSync...
const isBinaryPlist = content.length > bPlistMagic.length && bPlistMagic.compare(content, 0, bPlistMagic.length) === 0