Sha256: 3fe602ba0959e9a7725543533bc74c1439a8c1620a3cb30ee8a2ec673eb9b30d
Contents?: true
Size: 195 Bytes
Versions: 61
Compression:
Stored size: 195 Bytes
Contents
#!/usr/bin/env ruby require "knj/autoload" ip2loc = Knj::Ip2location.new data = ip2loc.lookup(ARGV[0]) if ARGV[1] == "json" print Knj::Php.json_encode(data) else Knj::Php.print_r(data) end
Version data entries
61 entries across 61 versions & 1 rubygems
Version | Path |
---|---|
knjrbfw-0.0.9 | lib/knj/scripts/ip2location.rb |