Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

plist

Package Overview
Dependencies
Maintainers
3
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

plist - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

.zuul.yml

10

History.md
1.0.1 / 2014-06-25
==================
* add .zuul.yml file for browser testing
* remove Testling stuff
* build: fix global variable `val` leak
* package: use --check-leaks when running mocha tests
* README: update examples to use preferred API
* package: add "browser" keyword
1.0.0 / 2014-05-20

@@ -3,0 +13,0 @@ ==================

3

lib/build.js

@@ -123,4 +123,3 @@

} else if ('Boolean' == name) {
val = next ? 'true' : 'false';
next_child.ele(val);
next_child.ele(next ? 'true' : 'false');

@@ -127,0 +126,0 @@ } else if ('String' == name) {

{
"name": "plist",
"description": "Mac OS X Plist parser/builder for Node.js and browsers",
"version": "1.0.0",
"version": "1.0.1",
"author": "Nathan Rajlich <nathan@tootallnate.net>",

@@ -19,2 +19,3 @@ "contributors": [

"apple",
"browser",
"mac",

@@ -38,17 +39,4 @@ "plist",

"scripts": {
"test": "mocha -gc --reporter spec test/*.js"
},
"testling": {
"browsers": [
"ie/8..latest",
"chrome/15..latest",
"firefox/22..latest",
"opera/12..latest",
"safari/5.1..latest",
"iphone/6..latest",
"ipad/6..latest"
],
"harness": "mocha",
"files": "test/*.js"
"test": "mocha -gc --reporter spec --check-leaks test/*.js"
}
}

@@ -7,4 +7,2 @@ plist.js

[![Browser Support](https://ci.testling.com/TooTallNate/plist.js.png)](https://ci.testling.com/TooTallNate/plist.js)
Provides facilities for reading and writing Mac OS X Plist (property list)

@@ -58,12 +56,13 @@ files. These are often used in programming OS X and iOS applications, as

Parsing a plist from filename
Parsing a plist from filename:
``` javascript
var fs = require('fs');
var plist = require('plist');
var obj = plist.parseFileSync('myPlist.plist');
var obj = plist.parse(fs.readFileSync('myPlist.plist', 'utf8'));
console.log(JSON.stringify(obj));
```
Parsing a plist from string payload
Parsing a plist from string payload:

@@ -73,3 +72,3 @@ ``` javascript

var obj = plist.parseStringSync('<plist><string>Hello World!</string></plist>');
var obj = plist.parse('<plist><string>Hello World!</string></plist>');
console.log(obj); // Hello World!

@@ -86,3 +85,3 @@ ```

console.log(plist.build({'foo' : 'bar'}).toString());
console.log(plist.build({ foo: 'bar' }));
```

@@ -89,0 +88,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc