Sample code for 30+ languages & platforms
Node.js

Example: Http.GetUrlPath method

Demonstrates the GetUrlPath method.

Chilkat Node.js Downloads

Node.js
NODEJS_PRELUDE

function chilkatExample() {

    var success = false;

    var http = new chilkat.Http();
    var url = "https://example.com/folder/page?lang=en&sort=asc#section2";
    console.log(http.GetUrlPath(url));

    //  Output:

    //  /folder/page

}

chilkatExample();