Simple xml pretty printer based on 'sax' sax parser
Want to see pretty graphs? Log in now!
npm install nxmlpp
|2||downloads in the last week|
|2||downloads in the last month|
|Last Published By|
|Version||0.0.1 last updated 2 years ago|
|Keywords||xml, pretty print, sax|
nxmlpp is simple xml pretty printer for node.js
It's based on https://github.com/isaacs/sax-js and was initially started as variant of https://github.com/isaacs/sax-js/blob/master/examples/pretty-print.js that can be used as library.
var nxmlpp = require('nxmlpp'); console.log(nxmlpp.strPrint('<root><a/><b/></root>'));
Command line usage
nxmlpp [input [output]]
stdin/stdout will be used if some of arguments are omitted.