URL Cutting in node js
A. In index.js var url = require('url'); var adr = 'http://localhost:8080/default.htm?year=2017&month=february'; //Parse the address: var q = url.parse(adr, true); /*The parse method returns an object containing url properties*/ console.log(q.host); console.log(q.pathname);…