PHP 8.2.30
Preview: get.js Size: 651 B
/proc/self/root/opt/alt/alt-nodejs6/root/lib/node_modules/npm/node_modules/npm-registry-client/lib/get.js

module.exports = get

var assert = require('assert')
var url = require('url')

/*
 * This is meant to be overridden in specific implementations if you
 * want specialized behavior for metadata (i.e. caching).
 */
function get (uri, params, cb) {
  assert(typeof uri === 'string', 'must pass registry URI to get')
  assert(params && typeof params === 'object', 'must pass params to get')
  assert(typeof cb === 'function', 'must pass callback to get')

  var parsed = url.parse(uri)
  assert(
    parsed.protocol === 'http:' || parsed.protocol === 'https:',
    'must have a URL that starts with http: or https:'
  )

  this.request(uri, params, cb)
}

Directory Contents

Dirs: 1 × Files: 18

Name Size Perms Modified Actions
dist-tags DIR
- drwxr-xr-x 2024-03-03 22:41:42
Edit Download
4.37 KB lrw-r--r-- 2021-09-28 09:36:08
Edit Download
3.74 KB lrw-r--r-- 2021-09-28 09:36:08
Edit Download
487 B lrw-r--r-- 2021-09-28 09:36:08
Edit Download
673 B lrw-r--r-- 2021-09-28 09:36:08
Edit Download
1.27 KB lrw-r--r-- 2021-09-28 09:36:08
Edit Download
2.42 KB lrw-r--r-- 2021-09-28 09:36:08
Edit Download
651 B lrw-r--r-- 2021-09-28 09:36:08
Edit Download
2.16 KB lrw-r--r-- 2021-09-28 09:36:08
Edit Download
722 B lrw-r--r-- 2021-09-28 09:36:08
Edit Download
659 B lrw-r--r-- 2021-09-28 09:36:08
Edit Download
5.38 KB lrw-r--r-- 2021-09-28 09:36:08
Edit Download
9.01 KB lrw-r--r-- 2021-09-28 09:36:08
Edit Download
1.37 KB lrw-r--r-- 2021-09-28 09:36:08
Edit Download
651 B lrw-r--r-- 2021-09-28 09:36:08
Edit Download
690 B lrw-r--r-- 2021-09-28 09:36:08
Edit Download
2.89 KB lrw-r--r-- 2021-09-28 09:36:08
Edit Download
3.70 KB lrw-r--r-- 2021-09-28 09:36:08
Edit Download
665 B lrw-r--r-- 2021-09-28 09:36:08
Edit Download

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