jsonml-cli

0.1.0 • Public • Published

#jsonml-cli

Convert HTML to JSONML or vice versa

##Installation

$ npm install -g jsonml-cli

##Usage

$ jsonml [options]

##Options

-o, --out <file>       output file
-i, --in <file>        input file
-u, --url <url>        input URL

-s, --space [string]   adds indentation, white space and line break

-n, --noProcInst       don't generate processing instructions
-l, --lowerTagNames    tag names in lower case
-L, --lowerAttrNames   attribute names in lower case
-a, --childrenInArray  children in separate array
-r, --requireAttr      HTML -> JSONML: add attributes object in any case
-e, --decodeEntities   HTML -> JSONML: decode Entities

-v, --version          output the version number
-h, --help             output usage information

####Without -i, --in and -u, --url

input from stdin

####Without -o, --out

output to stdout

Contributors

  • Maqentaer

MIT Licenced

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    1
  • 0.0.7
    1
  • 0.0.6
    1
  • 0.0.4
    1
  • 0.0.3
    1

Package Sidebar

Install

npm i jsonml-cli

Weekly Downloads

3

Version

0.1.0

License

none

Last publish

Collaborators

  • maqentaer