readplist

Read any plist file.

Usage no npm install needed!

<script type="module">
  import readplist from 'https://cdn.skypack.dev/readplist';
</script>

README

readplist

Tiny Node.js module to read any plist file.

Travis js-standard-style

Uses plutil which is only available on OS X.

Install

npm install readplist

Usage

var readplist = require('readplist');
var PATH = '/Applications/App\ Store.app/Contents/Info.plist';

readplist(PATH, function(err, plist) {
  if (err) return console.error(err);
  console.log(plist.MDItemKeywords)
});

Comparaison

module ops/sec XML JSON binary platform
readplist 80 darwin, node
plist.js 887 any, node/browser

node benchmark.js

Test

npm install -g standard
npm test