Sample code for 30+ languages & platforms
Node.js

Example: Http.GetDomain method

Demonstrates the GetDomain method.

Chilkat Node.js Downloads

Node.js
NODEJS_PRELUDE

function chilkatExample() {

    var http = new chilkat.Http();

    var domain = http.GetDomain("https://chilkatsoft.com/refdoc/csharp.asp");
    console.log(domain);

    //  Output: chilkatsoft.com

}

chilkatExample();