{"name":"plist","description":"Mac OS X Plist parser/builder for Node.js and browsers","version":"3.0.5","author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net"},"contributors":[{"name":"Hans Huebner","email":"hans.huebner@gmail.com"},{"name":"Pierre Metrailler"},{"name":"Mike Reinstein","email":"reinstein.mike@gmail.com"},{"name":"Vladimir Tsvang"},{"name":"Mathieu D'Amours"}],"repository":{"type":"git","url":"git://github.com/TooTallNate/node-plist.git"},"license":"MIT","keywords":["apple","browser","mac","plist","parser","xml"],"main":"index.js","dependencies":{"base64-js":"^1.5.1","xmlbuilder":"^9.0.7"},"devDependencies":{"browserify":"^17.0.0","mocha":"^5.2.0","multiline":"^1.0.2","zuul":"3.10.1"},"scripts":{"test":"make test"},"engines":{"node":">=6"},"gitHead":"24d38d301c05001c0102023ce34a1d1896cbd46a","bugs":{"url":"https://github.com/TooTallNate/node-plist/issues"},"homepage":"https://github.com/TooTallNate/node-plist#readme","_id":"plist@3.0.5","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-83vX4eYdQp3vP9SxuYgEM/G/pJQqLUz/V/xzPrzruLs7fz7jxGQ1msZ/mg1nwZxUSuOp4sb+/bEIbRrbzZRxDA==","shasum":"2cbeb52d10e3cdccccf0c11a63a85d830970a987","tarball":"http://registry-npm.ywwl.com/plist/download/plist-3.0.5.tgz","fileCount":18,"unpackedSize":533924,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiO0Q6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpD5w/8CtN145JXfMMIRitWyEIetarjdE0N75j3UcZtIsXHaMj5rdQE\r\neKin59u1QUGMQCDoayGgmuW5Dx20dgeBmGnPwbjxPUbeWfzDG6vyNCBi0lBb\r\n7BPpxKGLje3jmNRdLLxQMteG74u5pKjoq8OLR9k2CB8DfuwSWjE/tjqs3ocH\r\nbdGr4B+RR3nk7Svd8LZjK3RztSfnhU+7ExocZCBUARGN1MjyNIepaFo1qZTH\r\n6K9+GsR5ykdqCrCXSHX66pt7aHRzfvJJZReVzY4/84qO8eBmLfFI+lLjzZqH\r\nRoFHgSXc/0MZAgGlnp9GGrbP2DdJ3pZ+0TTXlqxxF3Knbi3+U0b6hvUuNQ37\r\n4w6VyfBkTY65Cd4rJ6o8fK9FaHamo/KlAw/JwIGWZRBJqRBZPzzAGJ3ftsDR\r\nZvHxvEQ/vA/8qreqIqsXQ6l0fOTCnLnzrdv6oty7XMcQqomhMu0RFqeDZzvd\r\n3gNA8uTMrLjKWXYUha3lDvEmHQluc15n1xBWGmBeYoJdphR8FFcxAUmWvqb9\r\nYs6HSt7mLGz74jBNfRIrRGCp6rJo59fJrgfj8Ua2gyaa7XqwFnugGuirNjaK\r\nMsyzSBeqqhIPQhUHOxSvHcCXNfGg5Jky8+yOatDbKKz/eCi4UKaYNG6w3XC1\r\n1ipzIcHu53FV9O3wF0VRWHcfBQbKh3OjpxI=\r\n=kqwh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHD/Ywn76mMYTNyAsBiHBdsWo6T6aYmqIDV9azsrtegpAiBQAwpd89x/79mOGNcuIb39vAHXe/VaIjQmzwCJFeRXzw=="}],"size":120014,"noattachment":false,"key":"/plist/-/plist-3.0.5.tgz"},"_npmUser":{"name":"mreinstein","email":"reinstein.mike@gmail.com"},"directories":{},"maintainers":[{"name":"mreinstein","email":"reinstein.mike@gmail.com"},{"name":"tootallnate","email":"nathan@tootallnate.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plist_3.0.5_1648051258348_0.509149060582512"},"_hasShrinkwrap":false,"readme":"plist.js\n========\n### Apple's Property list parser/builder for Node.js and browsers\n\n[![ci](https://github.com/TooTallNate/plist.js/actions/workflows/ci.yml/badge.svg)](https://github.com/TooTallNate/plist.js/actions/workflows/ci.yml)\n\nProvides facilities for reading and writing Plist (property list) files.\nThese are often used in programming OS X and iOS applications, as well\nas the iTunes configuration XML file.\n\nPlist files represent stored programming \"object\"s. They are very similar\nto JSON. A valid Plist file is representable as a native JavaScript Object\nand vice-versa.\n\n\n## Usage\n\n### Node.js\n\nInstall using `npm`:\n\n``` bash\n$ npm install --save plist\n```\n\nThen `require()` the _plist_ module in your file:\n\n``` js\nvar plist = require('plist');\n\n// now use the `parse()` and `build()` functions\nvar val = plist.parse('<plist><string>Hello World!</string></plist>');\nconsole.log(val);  // \"Hello World!\"\n```\n\n\n### Browser\n\nInclude the `dist/plist.js` in a `<script>` tag in your HTML file:\n\n``` html\n<script src=\"plist.js\"></script>\n<script>\n  // now use the `parse()` and `build()` functions\n  var val = plist.parse('<plist><string>Hello World!</string></plist>');\n  console.log(val);  // \"Hello World!\"\n</script>\n```\n\n\n## API\n\n### Parsing\n\nParsing a plist from filename:\n\n``` javascript\nvar fs = require('fs');\nvar plist = require('plist');\n\nvar obj = plist.parse(fs.readFileSync('myPlist.plist', 'utf8'));\nconsole.log(JSON.stringify(obj));\n```\n\nParsing a plist from string payload:\n\n``` javascript\nvar plist = require('plist');\n\nvar xml =\n  '<?xml version=\"1.0\" encoding=\"UTF-8\"?>' +\n  '<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">' +\n  '<plist version=\"1.0\">' +\n    '<key>metadata</key>' +\n    '<dict>' +\n      '<key>bundle-identifier</key>' +\n      '<string>com.company.app</string>' +\n      '<key>bundle-version</key>' +\n      '<string>0.1.1</string>' +\n      '<key>kind</key>' +\n      '<string>software</string>' +\n      '<key>title</key>' +\n      '<string>AppName</string>' +\n    '</dict>' +\n  '</plist>';\n\nconsole.log(plist.parse(xml));\n\n// [\n//   \"metadata\",\n//   {\n//     \"bundle-identifier\": \"com.company.app\",\n//     \"bundle-version\": \"0.1.1\",\n//     \"kind\": \"software\",\n//     \"title\": \"AppName\"\n//   }\n// ]\n```\n\n### Building\n\nGiven an existing JavaScript Object, you can turn it into an XML document\nthat complies with the plist DTD:\n\n``` javascript\nvar plist = require('plist');\n\nvar json = [\n  \"metadata\",\n  {\n    \"bundle-identifier\": \"com.company.app\",\n    \"bundle-version\": \"0.1.1\",\n    \"kind\": \"software\",\n    \"title\": \"AppName\"\n  }\n];\n\nconsole.log(plist.build(json));\n\n// <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n// <!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n// <plist version=\"1.0\">\n//   <key>metadata</key>\n//   <dict>\n//     <key>bundle-identifier</key>\n//     <string>com.company.app</string>\n//     <key>bundle-version</key>\n//     <string>0.1.1</string>\n//     <key>kind</key>\n//     <string>software</string>\n//     <key>title</key>\n//     <string>AppName</string>\n//   </dict>\n// </plist>\n```\n\n## Cross Platform Testing Credits\n\nMuch thanks to Sauce Labs for providing free resources that enable cross-browser testing on this project!\n\n[![Testing Powered By SauceLabs](https://opensource.saucelabs.com/images/opensauce/powered-by-saucelabs-badge-red.png?sanitize=true \"Testing Powered By SauceLabs\")](https://saucelabs.com)\n\n\n## License\n\n[(The MIT License)](LICENSE)\n","publish_time":1648051258479,"_cnpm_publish_time":1648051258479,"dist-tags":{"latest":"5.1.2"}}