@plist/xml.serialize
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

@plist/xml.serialize

TypeScript library for serializing XML Property Lists, in browser and node.js.

workflow npm npm NPM

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>
*/

Package Sidebar

Install

npm i @plist/xml.serialize

Weekly Downloads

1,077

Version

1.1.0

License

BSD-3-Clause-Clear

Unpacked Size

10.1 kB

Total Files

10

Last publish

Collaborators

  • mat-sz