package
A fast PLIST parser
npm install fast-plistGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Estimated unpacked size across 1 packages.
19.7 kB
Includes dependencies.
A fast PLIST parser.
npm install fast-plistvar parse = require('fast-plist').parse;
console.log(
parse(`
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>name</key>
<string>Brogrammer</string>
<key>settings</key>
<dict>
<key>background</key>
<string>#1a1a1a</string>
<key>caret</key>
<string>#ecf0f1</string>
<key>foreground</key>
<string>#ecf0f1</string>
<key>invisibles</key>
<string>#F3FFB51A</string>
<key>lineHighlight</key>
<string>#2a2a2a</string>
</dict>
</dict>
</plist>`
)
);
/* Output:
parse(`bad string`);
/* Output:
Error: Near offset 1: expected < ~~~ad string~~~
*/npm run watchnpm run testThis project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
microsoft1es
npmjs@microsoft.com