Toggle navigation
P3X GitList Snapshot
GitHub
Repo
Changelog
To do
Releases
Themes
Change log
Loading change log ...
To do ...
Loading todo ...
browsing:
dca5b0ad4222f9969f7ff15bdc5d2fc7eab9e3e4
Branches
0.1
0.2
html-sanitizer
html-sanitizer-and-mocha-specs
master
sanitize-oversight
Tags
v0.11.2
v0.11.0
v0.9.2
v0.9.0
v0.8.2
v0.6.2
v0.6.1
v0.6.0
v0.5.1
v0.5.0
v0.4.0
v0.3.2
v0.3.1
v0.3.0
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.1
0.1.0
Files
Commits
Log
Graph
Stats
xml2json.git
bin
xml2json
RSS
Git
Fetch origin
Download
ZIP
TAR
Clone
Raw
View
History
Clone
SSH
HTTPS
Blames found: 7
Mode: text
Binary: false
Hang on, we reloading big blames...
44ec8f8e
#!/usr/bin/env node var xml2json = require('../'); var pkg = require('../package.json'); var xml = ''; var args = process.argv.slice(2) var arg = args[0] if (arg == '--version') {
17a24607
console.log(pkg.version) process.exit(0)
44ec8f8e
}
17a24607
process.stdin.on('data', function (data) { xml += data;
44ec8f8e
}); process.stdin.resume();
17a24607
process.stdin.on('end', function () { json = xml2json.toJson(xml) process.stdout.write(json + '\n')
44ec8f8e
});