Socket
Socket
Sign inDemoInstall

xml-json

Package Overview
Dependencies
26
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    xml-json

convert xml to json on the command line, streaming and pure JS. extracts all matched xml elements by node name and stream them out at line delimited JSON


Version published
Maintainers
1
Install size
1.05 MB
Created

Readme

Source

xml-json

convert xml to json on the command line, streaming and pure JS. extracts all matched xml elements by node name and stream them out at line delimited JSON. can only match one node name at a time.

NPM

usage

you must specify both a input stream and a xml node filter. conversion of all input xml is not supported at this time. all nodes that match your filter node name will be returned one at a time as JSON.

npm install xml-json -g
xml-json <file> <xml node name>

or cat something.xml | xml-json <xml node name>

examples

curl "http://news.yahoo.com/rss/entertainment" | xml-json item
xml-json data.xml entry

FAQs

Last updated on 05 Aug 2014

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc