nmap-xml

0.0.1 • Public • Published

nmap-xml

Parse an nmap xml file, no matter the size thanks to streaming!

'use strict';
 
const nmapXml = require('nmap-xml');
 
const onHost = function(err, host) {
    console.log(host);
    console.log();
};
 
const onDone = function done(err) {
    console.log()
    console.log('DONE');
};
 
nmapXml.parseFile('./example-nmap.xml', onHost, onDone);
 
// or using streams ...
 
const stream; // Setup whatever stream you need ...
nmapXml.parseStream(stream, onHost, onDone);
 

Readme

Keywords

Package Sidebar

Install

npm i nmap-xml

Weekly Downloads

7

Version

0.0.1

License

MIT

Last publish

Collaborators

  • rezen