{ "_args": [ [ { "raw": "simple-plist@^0.2.1", "scope": null, "escapedName": "simple-plist", "name": "simple-plist", "rawSpec": "^0.2.1", "spec": ">=0.2.1 <0.3.0", "type": "range" }, "/home/jdaugherty/work/GT2/GT2-Android/node_modules/xcode" ] ], "_from": "simple-plist@>=0.2.1 <0.3.0", "_id": "simple-plist@0.2.1", "_inCache": true, "_location": "/simple-plist", "_nodeVersion": "4.4.7", "_npmOperationalInternal": { "host": "packages-18-east.internal.npmjs.com", "tmp": "tmp/simple-plist-0.2.1.tgz_1477979624873_0.24517794768325984" }, "_npmUser": { "name": "wollardj", "email": "joe.wollard@gmail.com" }, "_npmVersion": "2.15.8", "_phantomChildren": { "xmlbuilder": "8.2.2", "xmldom": "0.1.27" }, "_requested": { "raw": "simple-plist@^0.2.1", "scope": null, "escapedName": "simple-plist", "name": "simple-plist", "rawSpec": "^0.2.1", "spec": ">=0.2.1 <0.3.0", "type": "range" }, "_requiredBy": [ "/xcode" ], "_resolved": "https://registry.npmjs.org/simple-plist/-/simple-plist-0.2.1.tgz", "_shasum": "71766db352326928cf3a807242ba762322636723", "_shrinkwrap": null, "_spec": "simple-plist@^0.2.1", "_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/xcode", "author": { "name": "Joe Wollard" }, "bugs": { "url": "https://github.com/wollardj/node-simple-plist/issues" }, "dependencies": { "bplist-creator": "0.0.7", "bplist-parser": "0.1.1", "plist": "2.0.1" }, "description": "A wrapper utility for interacting with plist data.", "devDependencies": { "coffee-script": "^1.11.1", "jest": "^16.0.2" }, "directories": {}, "dist": { "shasum": "71766db352326928cf3a807242ba762322636723", "tarball": "https://registry.npmjs.org/simple-plist/-/simple-plist-0.2.1.tgz" }, "files": [ "simple-plist.js" ], "gitHead": "977f4a2fdadefc53c27db370b292b4d2de68ca71", "homepage": "https://github.com/wollardj/node-simple-plist.git", "keywords": [ "plist", "binary", "bplist", "xml" ], "license": "MIT", "main": "simple-plist.js", "maintainers": [ { "name": "wollardj", "email": "wollardj@denison.edu" }, { "name": "appcelerator", "email": "npmjs@appcelerator.com" } ], "name": "simple-plist", "optionalDependencies": {}, "readme": "node-simple-plist\n=================\n\nA simple API for interacting with binary and plain text plist data.\n\n\n## Installation\n```sh\n$ npm install simple-plist\n```\n\n\n## Reading Data\n```js\nvar plist = require('simple-plist');\n\n// Read data from a file (xml or binary) (asynchronous)\nplist.readFile('/path/to/some.plist', function(err,data){\n\tif (err) {throw err;}\n\tconsole.log( JSON.stringify(data) );\n});\n\n// Read data from a file (xml or binary) (synchronous)\nvar data = plist.readFileSync('/path/to/some.plist');\nconsole.log( JSON.stringify(data) );\n```\n\n\n## Writing Data\n```js\nvar plist = require('simple-plist'),\n\tdata = plist.readFileSync('/path/to/some.plist');\n\n// Write data to a xml file (asynchronous)\nplist.writeFile('/path/to/plaintext.plist', data, function(err){\n\tif (err) { throw err; }\n});\n\n// Write data to a xml file (synchronous)\nplist.writeFileSync('/path/to/plaintext.plist', data);\n\n// Write data to a binary plist file (asynchronous)\nplist.writeBinaryFile('/path/to/binary.plist', data, function(err){\n\tif (err) { throw err; }\n});\n\n// Write data to a binary plist file (synchronous)\nplist.writeBinaryFileSync('/path/to/binary.plist', data);\n```\n\n\n## Mutating Plists In Memory\n```js\nvar plist = require('simple-plist');\n\n// Convert a Javascript object to a plist xml string\nvar xml = plist.stringify( {name: \"Joe\", answer:42} );\nconsole.log(xml); // output is a valid plist xml string\n\n// Convert a plist xml string or a binary plist buffer to a Javascript object\nvar data = plist.parse(\"nameJoe\");\nconsole.log( JSON.stringify(data) );\n```\n", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/wollardj/node-simple-plist.git" }, "scripts": { "clean": "rm -rf *.js __tests__/*.js __tests__/write-test* coverage", "prepublish": "npm test", "test": "npm run-script clean && ./node_modules/.bin/coffee -c . && ./node_modules/.bin/jest --coverage" }, "version": "0.2.1" }