
Research
Security News
Malicious npm Packages Target BSC and Ethereum to Drain Crypto Wallets
Socket uncovered four malicious npm packages that exfiltrate up to 85% of a victim’s Ethereum or BSC wallet using obfuscated JavaScript.
A simple and fast iTunes Library XML parser based on nokogiri-plist.
The iTunes Library XML is a PList file, so logically, the best way to parse this is with a PList parser.
The main concept is to keep things simple, using Arrays and Hashes, so you can later use the items within the XML file as you please.
Add this line to your application's Gemfile:
gem 'itunes_parser'
And then execute:
$ bundle
Or install it yourself as:
$ gem install itunes_parser
First, create a new instance:
ip = ItunesParser.new(xml_dir: "/route/to/the/file.xml")
Then you can:
Check all the playlists:
ip.playlists
Or get them with just the ID and Name:
ip.playlists(pretty: true)
And then show a playlist tracks based on the ID:
a.playlist_tracks(id: <playlist_id>)
Or check all the tracks:
a.tracks
Of course you can also get just the ID and Name:
a.tracks(pretty: true)
And check just one track based on the ID:
a.track(id: <track_id>)
Copyright (c)
You can use the example XML in the examples
folder and check it in the console running bin/console
.
Bug reports and pull requests are welcome on GitHub at https://github.com/elfenars/itunes_parser. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
This library is distributed under the UNLICENSE license. Please see the LICENSE file.
FAQs
Unknown package
We found that itunes_parser 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.
Research
Security News
Socket uncovered four malicious npm packages that exfiltrate up to 85% of a victim’s Ethereum or BSC wallet using obfuscated JavaScript.
Security News
TC39 advances 9 JavaScript proposals, including Array.fromAsync, Error.isError, and Explicit Resource Management, which are now headed into the ECMAScript spec.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.