PHP 8.3.31
Preview: pick-registry.js Size: 360 B
/opt/alt/alt-nodejs9/root/usr/lib/node_modules/npm/node_modules/pacote/lib/fetchers/registry/pick-registry.js

'use strict'

module.exports = pickRegistry
function pickRegistry (spec, opts) {
  let registry = spec.scope && opts.scopeTargets[spec.scope]

  if (!registry && opts.scope) {
    const prefix = opts.scope[0] === '@' ? '' : '@'
    registry = opts.scopeTargets[prefix + opts.scope]
  }

  if (!registry) {
    registry = opts.registry
  }

  return registry
}

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).