📅  最后修改于: 2022-03-11 14:46:53.081000             🧑  作者: Mango
const parseUrl = require('parse-url');
const url = 'git+ssh://git@softhunt.net:30/path/to/resource.git?key1=value1&key2=value2#anchor';
const parsedUrl = parseUrl(url);
console.log(parsedUrl)