Skip to content

convert xml to json on the command line. not streaming, pure javascript

Notifications You must be signed in to change notification settings

max-mapper/xml-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

convert xml to json on the command line. not streaming, pure javascript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published