Sha256: 4d92ab2cb9e762bec93e95ea33442d859dec80c8698de027b2f1bb8de88c6438
Contents?: true
Size: 189 Bytes
Versions: 40
Compression:
Stored size: 189 Bytes
Contents
#!/usr/bin/env ruby require "knj/autoload" ip2loc = Knj::Ip2location.new data = ip2loc.lookup(ARGV[0]) if ARGV[1] == "json" print Php4r.json_encode(data) else Php4r.print_r(data) end
Version data entries
40 entries across 40 versions & 1 rubygems