Package Exports
- @plist/parse
- @plist/parse/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@plist/parse) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@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
# or:
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>`);
// => { hello: true }
import { detectFormat } from '@plist/parse';
const format = detectFormat(`{ hello = world; }`);
// => PlistFormat.OPENSTEP