130 lines
6.3 KiB
JSON
130 lines
6.3 KiB
JSON
{
|
|
"_args": [
|
|
[
|
|
{
|
|
"raw": "plist@2.1.0",
|
|
"scope": null,
|
|
"escapedName": "plist",
|
|
"name": "plist",
|
|
"rawSpec": "2.1.0",
|
|
"spec": "2.1.0",
|
|
"type": "version"
|
|
},
|
|
"/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/xdl"
|
|
]
|
|
],
|
|
"_from": "plist@2.1.0",
|
|
"_id": "plist@2.1.0",
|
|
"_inCache": true,
|
|
"_location": "/plist",
|
|
"_nodeVersion": "7.10.0",
|
|
"_npmOperationalInternal": {
|
|
"host": "packages-12-west.internal.npmjs.com",
|
|
"tmp": "tmp/plist-2.1.0.tgz_1493916267526_0.6685970653779805"
|
|
},
|
|
"_npmUser": {
|
|
"name": "mreinstein",
|
|
"email": "reinstein.mike@gmail.com"
|
|
},
|
|
"_npmVersion": "4.2.0",
|
|
"_phantomChildren": {},
|
|
"_requested": {
|
|
"raw": "plist@2.1.0",
|
|
"scope": null,
|
|
"escapedName": "plist",
|
|
"name": "plist",
|
|
"rawSpec": "2.1.0",
|
|
"spec": "2.1.0",
|
|
"type": "version"
|
|
},
|
|
"_requiredBy": [
|
|
"/xdl"
|
|
],
|
|
"_resolved": "https://registry.npmjs.org/plist/-/plist-2.1.0.tgz",
|
|
"_shasum": "57ccdb7a0821df21831217a3cad54e3e146a1025",
|
|
"_shrinkwrap": null,
|
|
"_spec": "plist@2.1.0",
|
|
"_where": "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/xdl",
|
|
"author": {
|
|
"name": "Nathan Rajlich",
|
|
"email": "nathan@tootallnate.net"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/TooTallNate/node-plist/issues"
|
|
},
|
|
"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"
|
|
}
|
|
],
|
|
"dependencies": {
|
|
"base64-js": "1.2.0",
|
|
"xmlbuilder": "8.2.2",
|
|
"xmldom": "0.1.x"
|
|
},
|
|
"description": "Mac OS X Plist parser/builder for Node.js and browsers",
|
|
"devDependencies": {
|
|
"browserify": "^14.3.0",
|
|
"mocha": "^3.3.0",
|
|
"multiline": "^1.0.2",
|
|
"zuul": "^3.10.1"
|
|
},
|
|
"directories": {},
|
|
"dist": {
|
|
"shasum": "57ccdb7a0821df21831217a3cad54e3e146a1025",
|
|
"tarball": "https://registry.npmjs.org/plist/-/plist-2.1.0.tgz"
|
|
},
|
|
"gitHead": "b8c7671b0a873e2cc39b85a31a9794f041f9f696",
|
|
"homepage": "https://github.com/TooTallNate/node-plist#readme",
|
|
"keywords": [
|
|
"apple",
|
|
"browser",
|
|
"mac",
|
|
"plist",
|
|
"parser",
|
|
"xml"
|
|
],
|
|
"license": "MIT",
|
|
"main": "index.js",
|
|
"maintainers": [
|
|
{
|
|
"name": "TooTallNate",
|
|
"email": "nathan@tootallnate.net"
|
|
},
|
|
{
|
|
"name": "tootallnate",
|
|
"email": "nathan@tootallnate.net"
|
|
},
|
|
{
|
|
"name": "mreinstein",
|
|
"email": "reinstein.mike@gmail.com"
|
|
}
|
|
],
|
|
"name": "plist",
|
|
"optionalDependencies": {},
|
|
"readme": "plist.js\n========\n### Mac OS X Plist parser/builder for Node.js and browsers\n\n[![Sauce Test Status](https://saucelabs.com/browser-matrix/plistjs.svg)](https://saucelabs.com/u/plistjs)\n\n[![Build Status](https://travis-ci.org/TooTallNate/plist.js.svg?branch=master)](https://travis-ci.org/TooTallNate/plist.js)\n\nProvides facilities for reading and writing Mac OS X Plist (property list)\nfiles. These are often used in programming OS X and iOS applications, as\nwell as 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## License\n\n[(The MIT License)](LICENSE)\n",
|
|
"readmeFilename": "README.md",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git://github.com/TooTallNate/node-plist.git"
|
|
},
|
|
"scripts": {
|
|
"test": "make test"
|
|
},
|
|
"version": "2.1.0"
|
|
}
|