Normalize a SSH URL
npm install normalize-ssh
yarn add normalize-ssh
pnpm add normalize-ssh
bun add normalize-ssh
npm i -S normalize-ssh
const normalizeSshUrl = require('normalize-ssh') normalizeSshUrl('git@gitlab.domain.tld:myproject/myrepo.git') //> ssh://git@gitlab.domain.tld:22/myproject/myrepo.git
MIT © Zoltan Kochan