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}`);
});

Last updated