PHP 8.2.30
Preview: registry-key.js Size: 410 B
/opt/alt/alt-nodejs9/root/lib/node_modules/npm/node_modules.bundled/pacote/lib/fetchers/registry/registry-key.js

'use strict'

const url = require('url')

// Called a nerf dart in the main codebase. Used as a "safe"
// key when fetching registry info from config.
module.exports = registryKey
function registryKey (registry) {
  const parsed = url.parse(registry)
  const formatted = url.format({
    host: parsed.host,
    pathname: parsed.pathname,
    slashes: parsed.slashes
  })
  return url.resolve(formatted, '.')
}

Directory Contents

Dirs: 0 × Files: 7

Name Size Perms Modified Actions
1.19 KB lrw-r--r-- 2021-09-28 11:28:21
Edit Download
3.11 KB lrw-r--r-- 2021-09-28 11:28:21
Edit Download
584 B lrw-r--r-- 2021-09-28 11:28:21
Edit Download
4.28 KB lrw-r--r-- 2021-09-28 11:28:21
Edit Download
360 B lrw-r--r-- 2021-09-28 11:28:21
Edit Download
410 B lrw-r--r-- 2021-09-28 11:28:21
Edit Download
2.55 KB lrw-r--r-- 2021-09-28 11:28:21
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).