Skip to content

gratex/xml2js-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xml2js-cli

xml2js command line interface version

Description

Simple XML to JavaScript object converter. Uses node-xml2js.

Usage:

Usage:
xml2js [-h]
options:
        -h print this help

Sample

echo '<a><nested>Hello</nested><b>world</b></a>' | xml2js

{
 "a": {
  "nested": "Hello",
  "b": "world"
 }
}

xml2js-stream

    $ echo '
    <a>hello</a>
    <a>hello2   </a>
    ' | ../xml2js-cli/bin/xml2js-stream '{"normalize":true}' | jsontool -g
    [
      {
        "a": "hello"
      },
      {
        "a": "hello2"
      }
    ]

About

xml2js command line interface version

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published