/usr/lib/nodejs/registry-auth-token/registry-url.js is in node-registry-auth-token 3.3.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 | module.exports = function (scope, npmrc) {
var rc = npmrc || require('rc')('npm', {registry: 'https://registry.npmjs.org/'})
var url = rc[scope + ':registry'] || rc.registry
return url.slice(-1) === '/' ? url : url + '/'
}
|