#!/usr/bin/env node


var whois = require('../lib/whois');
var args = process.argv.slice(2)
if (args.length == 0) process.exit()

whois(args[0])
    .then(function ({ stdout, stderr, format, }) {
        console.log(stdout)
        console.log(format)
    })