normalize-registry-url Normalizes a npm registry URL Installation pnpm add normalize-registry-url Usage const normalizeRegistrUrl = require('normalize-registry-url') const registry = normalizeRegistrUrl('https://registry.npmjs.org') console.log(registry) // 'https://registry.npmjs.org/' License MIT © Zoltan Kochan