Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

registry-url

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

registry-url - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

13

index.js
'use strict';
var npmconf = require('npmconf');
module.exports = function (cb) {
npmconf.load(function (err, conf) {
if (err) {
cb(err);
return;
}
cb(null, conf.get('registry'));
});
};
module.exports = require('rc')('npm').registry || 'http://registry.npmjs.org/';

7

package.json
{
"name": "registry-url",
"version": "1.0.0",
"version": "2.0.0",
"description": "Get the set npm registry URL",

@@ -30,7 +30,8 @@ "license": "MIT",

"dependencies": {
"npmconf": "^2.0.1"
"rc": "^0.5.1"
},
"devDependencies": {
"mocha": "*"
"mocha": "*",
"require-uncached": "^1.0.2"
}
}

@@ -27,6 +27,4 @@ # registry-url [![Build Status](https://travis-ci.org/sindresorhus/registry-url.svg?branch=master)](https://travis-ci.org/sindresorhus/registry-url)

registryUrl(function (err, url) {
console.log(url);
//=> https://custom-registry.com/
});
console.log(registryUrl);
//=> https://custom-registry.com/
```

@@ -33,0 +31,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc