
Security News
Scaling Socket from Zero to 10,000+ Organizations
Socket CEO Feross Aboukhadijeh shares lessons from scaling a developer security startup to 10,000+ organizations in this founder interview.
nokogiri-plist
Advanced tools
= Nokogiri-PList
== DESCRIPTION:
Nokogiri-plist provides the functionality for dealing with XML in Apple's property list format.
There is already a plist gem (http://github.com/bleything/plist) that has similar functionality. I didn't realize it until I had written most of this gem. However this gem uses Nokogiri, so the implementation is simpler. The plist gem does its own XML parsing. I figured since I was already using Nokogiri in my project, it's better to build on top of that. I did get ideas from the original gem. I have benchmarked my gem against that gem and it performs similarly. Once I come up with a little more scientific benchmarks, I'll show them.'
== FEATURES:
== USAGE:
Sample plist (test.plist)
Beers Black Butte Steel Reserve Bass Pale Ale Beer DrinkerCasey Beers Drank4123require 'nokogiri-plist'
Parse the plist XML
plist = Nokogiri::PList(open('test.plist')) => { "Beers" => ["Black Butte", "Steel Reserve", "Bass Pale Ale"], "Beers Drank" => 4123, "Beer Drinker" => "Casey"}
Read a dict property thats value is an array
plist["Beers"] => ["Black Butte", "Steel Reserve", "Bass Pale Ale"]
Read another value
plist["Beer Drinker"] => "Casey"
Turn it into a string containing XML
puts plist.to_plist_xml Beers Black Butte Steel Reserve Bass Pale Ale Beers Drank4123 Beer DrinkerCasey
Convert a string into a plist XML string
"beer".to_plist_xml => "beer"
Convert an array to a plist XML string
puts (1..3).to_a.to_plist_xml
<integer>1</integer>
<integer>2</integer>
<integer>3</integer>
== REQUIREMENTS:
== INSTALL:
FAQs
Unknown package
We found that nokogiri-plist demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh shares lessons from scaling a developer security startup to 10,000+ organizations in this founder interview.

Research
Socket Threat Research maps a rare inside look at OtterCookie’s npm-Vercel-GitHub chain, adding 197 malicious packages and evidence of North Korean operators.

Research
Socket researchers identified a malicious Chrome extension that manipulates Raydium swaps to inject an undisclosed SOL transfer, quietly routing fees to an attacker wallet.