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