🚀
Empathize
  • Introduction
  • Installation
  • API
    • Paths API
      • Directories
      • Paths
    • Filesystem API
      • Filesystem
    • Windows API
      • Windows
    • OS API
      • Process
      • Tray
      • IPC
      • Notification
      • Archive
      • Package
    • Network API
      • fetch
      • Domain
      • Downloader
    • Async API
      • promisify
    • Meta classes
      • Cache
      • Configs
      • Debug
  • Building application
Powered by GitBook
On this page
  1. API
  2. Network API

Domain

Domain.getInfo(uri)

import { Domain } from '@empathize/framework';

Domain.getInfo('youtube.com').then((info) => {
    console.log(`URI: ${info.uri}`);
    console.log(`Available: ${info.available}`);
    
    if (info.remoteIp)
        console.log(`Remote IP: ${info.remoteIp}`);
        
    if (info.localIp)
        console.log(`Local IP: ${info.localIp}`);
});
PreviousfetchNextDownloader

Last updated 3 years ago