URL de l'analyse JS
const url = new URL('http://example.com/');
url.pathname; // => '/'
Careful Cowfish
const url = new URL('http://example.com/');
url.pathname; // => '/'
const parseUrl = require('parse-url');
const url = 'https://www.softhunt.net/';
const parsedUrl = parseUrl(url);
console.log(parsedUrl)