Nupital Pomp Mesmerises

    @skiddph/domain-checker

    0.0.2 • Public • Published

    domain-checker-js

    Install

    npm install @skiddph/domain-checker

    Example

    const domainChecker = require('@skiddph/domain-checker')
    
    const query = 'domain.com' // format: 'domain.com' or 'domain'
    const vendor = 'google' // Google Domains
    
    await domainChecker(query)[vendor]()
      .then(e => {
        if(e.success) {
          console.log('vendor:', e.title)
          console.log('website:', e.website)
          console.log('result count:', e.result.length)
          console.table(e.result)  
        } else throw e.message
      })
      .catch(e => {
        console.log(e.message)
      })

    Response

    success: Boolean
    error: Boolean
    message: String
    title: String
    website: Sting
    result: # Array
      - available: Boolean
        sld: String
        tld: String
        currency: String
        price: Number

    Available vendors

    +----------+----------------+
    | Key      | Name           |
    +----------+----------------+
    | google   | Google Domains |
    | freenom  | Freenom        |
    +----------+----------------+
    

    LICENSE

    Apache-2.0@skiddph

    Install

    npm i @skiddph/domain-checker

    DownloadsWeekly Downloads

    4

    Version

    0.0.2

    License

    Apache-2.0

    Unpacked Size

    10.2 kB

    Total Files

    8

    Last publish

    Collaborators

    • lighty262