Skip to content

Commit

Permalink
fix: command line interface call and test
Browse files Browse the repository at this point in the history
  • Loading branch information
mwguerra committed May 28, 2023
1 parent dfa6ab4 commit 8bc3c53
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/bin/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/usr/bin/env node

import whoisClient from "../index";
import { whoisClient } from "../index";

const args = process.argv.splice(2);
const domain = args[0];

if (domain) {
whoisClient(domain)
.then(response => console.dir(response, {depth: null}))
.then((response: any) => console.dir(response, {depth: null}))
.catch(console.error)
} else {
console.log("Syntax: 'whois-client example.com`");
Expand Down
Loading

0 comments on commit 8bc3c53

Please sign in to comment.