@plist/parse
An universal TypeScript library for parsing Apple's Property Lists. Supports binary, text and XML plists; works well in both browser and node.
About
This library adapts logic and test cases from plist.js.
Installation
@plist/parse is available on npm, you can install it with either npm or yarn:
npm install @plist/parse
yarn install @plist/parse
Usage
import { parse } from '@plist/parse';
const dict = parse(`<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>hello</key>
<true/>
</dict>
</plist>`);
import { detectFormat } from '@plist/parse';
const format = detectFormat(`{ hello = world; }`);