Analyse JavaScript Analyse de l'analyse séparée

const parseUrl = require('parse-url');
const url = 'git+ssh://[email protected]:30/path/to/resource.git?key1=value1&key2=value2#anchor';
const parsedUrl = parseUrl(url);

console.log("The protocols used in the URL are :" + parsedUrl.protocols);
console.log("The port used in the URL is :" + parsedUrl.port);
console.log("The resource in the URL is :" + parsedUrl.resource);
console.log("The user in the URL is :" + parsedUrl.user);
console.log("The pathname in the URL is :" + parsedUrl.pathname);
console.log("The hash in the URL is :" + parsedUrl.hash);
console.log("The search part in the URL is :" + parsedUrl.search);
console.log("Full URL is :" + parsedUrl.href);
Outrageous Ostrich