1.1.1 • Published 7 years ago

whoispk v1.1.1

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

whoispk

npm version npm Build Status MIT license

Issue WHOIS lookup for PKNIC (.pk) domain names from the command line.

Installation

Global

npm install -g whoispk

Usage

whoispk [options] address

Options:
  -V, --version  output the version number
  -h, --help     output usage information

Local

npm install whoispk

Usage

const whoispk = require('whoispk');

whoispk.lookup('daraz.pk', function (err, domainInfo) {

  if (err) {
    throw err;
  }

  if (domainInfo.isFound) {
    console.log(domainInfo.data);
  } else {
    console.log('Domain not Found');
  }

});

or using ES6 Promises:

const whoispk = require('whoispk');

whoispk
  .lookup('daraz.pk')
  .then(function (domainInfo) {

    if (domainInfo.isFound) {
      console.log(domainInfo.data);
    } else {
      console.log('Domain not Found');
    }
  })
  .catch(function (err) {
    throw err;
  });

The console will show following information if domainInfo.isFound is true:

{
  domain_name: 'daraz.pk',
  registrant: 'Jade E Services Pakistan {Pvt} Limited',
  address: 'Clifton Karachi; South Sindh 75600Pakistan',
  create_date: 'May 14, 2012',
  expire_date: 'May 14, 2018',
  agent_org: 'iS-Fun Internet Services GmbH',
  technical_contact: [
    'Jade E Services Pakistan {Pvt} Limited',
    'Raja Muneeb Idrees M Admin',
    'Clifton, Karachi; South Sindh75600'
  ],
  billing_contact: [
    'iS-Fun Internet Services GmbH',
    'Robin Fundinger',
    'Karlsbad, 76307'
  ],
  nameservers: [
    'kip.ns.cloudflare.com',
    'naomi.ns.cloudflare.com'
  ]
}

Source of information: http://pknic.net.pk

Contributing

  • Discuss ideas in issues section
  • Spread the word

License

whoispk is available under the MIT license.

1.1.1

7 years ago

1.1.0

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago