1.1.0 • Published 1 year ago

@plist/xml.serialize v1.1.0

Weekly downloads
-
License
BSD-3-Clause-Clea...
Repository
github
Last release
1 year ago

About

This library adapts logic and test cases from plist.js.

Installation

@plist/xml.serialize is available on npm, you can install it with either npm or yarn:

npm install @plist/xml.serialize
# or:
yarn install @plist/xml.serialize

Usage

import { serialize } from '@plist/xml.serialize';

const xml = serialize({
  dictionary: {
    hello: 'world',
  },
});
/* =>
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
  <key>hello</key>
  <string>world</string>
</dict>
</plist>
*/