| { |
| "name": "plist", |
| "description": "Mac OS X Plist parser/builder for NodeJS. Convert a Plist file or string into a native JS object and native JS object into a Plist file.", |
| "version": "0.4.3", |
| "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" |
| }, |
| "keywords": [ |
| "apple", |
| "mac", |
| "plist", |
| "parser", |
| "xml" |
| ], |
| "main": "./lib/plist", |
| "dependencies": { |
| "xmlbuilder": "0.4.x", |
| "xmldom": "0.1.x" |
| }, |
| "devDependencies": {}, |
| "scripts": { |
| "test": "nodeunit tests" |
| }, |
| "engines": { |
| "node": ">= 0.1.100" |
| }, |
| "readme": "# node-plist\n\nProvides facilities for reading and writing Mac OS X Plist (property list) files. These are often used in programming OS X and iOS applications, as well as the iTunes\nconfiguration 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 and vice-versa.\n\n## Tests\n`npm test`\n\n## Usage\nParsing a plist from filename\n``` javascript\nvar plist = require('plist');\n\nvar obj = plist.parseFileSync('myPlist.plist');\nconsole.log(JSON.stringify(obj));\n```\n\nParsing a plist from string payload\n``` javascript\nvar plist = require('plist');\n\nvar obj = plist.parseStringSync('<plist><string>Hello World!</string></plist>');\nconsole.log(obj); // Hello World!\n```\n\nGiven an existing JavaScript Object, you can turn it into an XML document that complies with the plist DTD\n\n``` javascript\nvar plist = require('plist');\n\nconsole.log(plist.build({'foo' : 'bar'}).toString());\n```\n\n\n\n### Deprecated methods\nThese functions work, but may be removed in a future release. version 0.4.x added Sync versions of these functions.\n\nParsing a plist from filename\n``` javascript\nvar plist = require('plist');\n\nplist.parseFile('myPlist.plist', function(err, obj) {\n if (err) throw err;\n\n console.log(JSON.stringify(obj));\n});\n```\n\nParsing a plist from string payload\n``` javascript\nvar plist = require('plist');\n\nplist.parseString('<plist><string>Hello World!</string></plist>', function(err, obj) {\n if (err) throw err;\n\n console.log(obj[0]); // Hello World!\n});\n```\n", |
| "readmeFilename": "README.md", |
| "bugs": { |
| "url": "https://github.com/TooTallNate/node-plist/issues" |
| }, |
| "_id": "plist@0.4.3", |
| "_from": "plist@0.4.x" |
| } |