module Nmap2json
Constants
- VERSION
Public Class Methods
parse_xml(file, save: false)
click to toggle source
# File lib/nmap2json.rb, line 6 def self.parse_xml(file, save: false) j = Hash.from_xml(IO.binread(file)).to_json IO.binwrite(save, j) if save return j end