UNPKG

@zkochan/pnpm

Version:

Fast, disk space efficient package manager

10 lines (8 loc) 239 B
'use strict' module.exports = function (registry) { if (typeof registry !== 'string') { throw new TypeError('`registry` should be a string') } if (registry[registry.length - 1] === '/') return registry return `${registry}/` }