Skip to content
This repository has been archived by the owner on Jun 19, 2020. It is now read-only.
/ node-plist Public archive
forked from TooTallNate/plist.js

Mac OS X Plist parser for NodeJS. Convert a Plist file or string into a native JS object

License

Notifications You must be signed in to change notification settings

joshfire/node-plist

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-plist

This library contains a parser for Mac OS X Plist (property list) files. These are often used in programming OS X and iOS applications, as well as the iTunes configuration XML file.

Plist files represent stored programming "object"s. This makes them very similar in nature to a JSON file. A valid Plist file should be directly representable as a native JavaScript Object.

Usage

Exported are parseFile and parseString functions. Here's some examples:

var plist = require('plist');

plist.parseFile('myPlist.plist', function(err, obj) {
  if (err) throw err;

  console.log(JSON.stringify(obj));
});

Just a String payload works as well:

var plist = require('plist');

plist.parseString('<plist><string>Hello World!</string></plist>', function(err, obj) {
  if (err) throw err;

  console.log(obj[0]);
  // Hello World!
});

About

Mac OS X Plist parser for NodeJS. Convert a Plist file or string into a native JS object

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%