Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
A tiny, easy-to-use Object-XML-Mapper for Ruby. Internally uses Nokogiri SAX parser which allows handling of large XML documents.
gem install oxm
<orders>
<order date="2011/08/27">
<item amount="5">Apple</item>
<item amount="2">Banana</item>
<customer id="100">Alice</customer>
</order>
<order date="2011/08/27">
<item amount="1">Zoltax</item>
<customer id="200">Bob</customer>
</order>
</orders>
require 'oxm'
# With block
OXM.from_xml(xml_data_or_io, 'orders/order') do |order|
# Accessing attributes of the element
order['date']
order.attributes
# Accessing attributes and text/cdata values of child elements
order.item.first['amount']
order.item.first.content
order.item.first.to_s
order.item.first.cdata?
# Traverses child elements
order.elements.each do |tag, elements_for_the_tag|
# ...
end
# Compaction: collapse single-element Arrays
order.customer.first.to_s
order.customer.first['id']
order.compact!
order.customer.to_s
order.customer['id']
# XML expression for the element
order.to_xml
order.item.first.to_xml
end
# Array of elements are returned when block is not given
items = OXM.from_xml(xml_data_or_io, 'orders/order/item')
Copyright (c) 2011 Junegunn Choi. See LICENSE.txt for further details.
FAQs
Unknown package
We found that oxm 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.