PHP 8.2.30
Preview: clear-credentials-by-uri.js Size: 423 B
/proc/self/root/proc/self/root/opt/alt/alt-nodejs6/root/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: 12

Name Size Perms Modified Actions
423 B lrw-r--r-- 2021-09-28 09:36:04
Edit Download
1.83 KB lrw-r--r-- 2021-09-28 09:36:04
Edit Download
11.03 KB lrw-r--r-- 2021-09-28 09:36:04
Edit Download
9.98 KB lrw-r--r-- 2021-09-28 09:36:04
Edit Download
1.31 KB lrw-r--r-- 2021-09-28 09:36:04
Edit Download
2.06 KB lrw-r--r-- 2021-09-28 09:36:04
Edit Download
682 B lrw-r--r-- 2021-09-28 09:36:04
Edit Download
1.30 KB lrw-r--r-- 2021-09-28 09:36:04
Edit Download
386 B lrw-r--r-- 2021-09-28 09:36:04
Edit Download
471 B lrw-r--r-- 2021-09-28 09:36:04
Edit Download
1.24 KB lrw-r--r-- 2021-09-28 09:36:04
Edit Download
749 B lrw-r--r-- 2021-09-28 09:36:04
Edit Download

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