PHP 8.2.30
Preview: clear-credentials-by-uri.js Size: 423 B
/proc/self/root/opt/alt/alt-nodejs9/root/usr/lib/node_modules/npm/lib/config/clear-credentials-by-uri.js

var assert = require('assert')

var toNerfDart = require('./nerf-dart.js')

module.exports = clearCredentialsByURI

function clearCredentialsByURI (uri) {
  assert(uri && typeof uri === 'string', 'registry URL is required')

  var nerfed = toNerfDart(uri)

  this.del(nerfed + ':_authToken', 'user')
  this.del(nerfed + ':_password', 'user')
  this.del(nerfed + ':username', 'user')
  this.del(nerfed + ':email', 'user')
}

Directory Contents

Dirs: 0 × Files: 17

Name Size Perms Modified Actions
716 B lrw-r--r-- 2021-09-28 11:28:09
Edit Download
423 B lrw-r--r-- 2021-09-28 11:28:09
Edit Download
1.86 KB lrw-r--r-- 2021-09-28 11:28:09
Edit Download
10.98 KB lrw-r--r-- 2021-09-28 11:28:09
Edit Download
11.12 KB lrw-r--r-- 2021-09-28 11:28:09
Edit Download
1.93 KB lrw-r--r-- 2021-09-28 11:28:09
Edit Download
687 B lrw-r--r-- 2021-09-28 11:28:09
Edit Download
2.00 KB lrw-r--r-- 2021-09-28 11:28:09
Edit Download
851 B lrw-r--r-- 2021-09-28 11:28:09
Edit Download
682 B lrw-r--r-- 2021-09-28 11:28:09
Edit Download
1.30 KB lrw-r--r-- 2021-09-28 11:28:09
Edit Download
386 B lrw-r--r-- 2021-09-28 11:28:09
Edit Download
471 B lrw-r--r-- 2021-09-28 11:28:09
Edit Download
3.99 KB lrw-r--r-- 2021-09-28 11:28:09
Edit Download
788 B lrw-r--r-- 2021-09-28 11:28:09
Edit Download
1.24 KB lrw-r--r-- 2021-09-28 11:28:09
Edit Download
749 B lrw-r--r-- 2021-09-28 11:28:09
Edit Download

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