Sha256: 2372ae10b110f36a2024f56f06d66277344c320855726014b3d3cc4112df54b5

Contents?: true

Size: 275 Bytes

Versions: 25

Compression:

Stored size: 275 Bytes

Contents

import rc from 'rc';

export default function registryUrl(scope) {
	const result = rc('npm', {registry: 'https://registry.npmjs.org/'});
	const url = result[`${scope}:registry`] || result.config_registry || result.registry;
	return url.slice(-1) === '/' ? url : `${url}/`;
}

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
immosquare-cleaner-0.1.52 node_modules/registry-url/index.js
immosquare-cleaner-0.1.51 node_modules/registry-url/index.js
immosquare-cleaner-0.1.50 node_modules/registry-url/index.js
immosquare-cleaner-0.1.49 node_modules/registry-url/index.js
immosquare-cleaner-0.1.48 node_modules/registry-url/index.js
immosquare-cleaner-0.1.47 node_modules/registry-url/index.js
immosquare-cleaner-0.1.46 node_modules/registry-url/index.js
immosquare-cleaner-0.1.45 node_modules/registry-url/index.js
immosquare-cleaner-0.1.44 node_modules/registry-url/index.js
immosquare-cleaner-0.1.43 node_modules/registry-url/index.js
immosquare-cleaner-0.1.42 node_modules/registry-url/index.js
immosquare-cleaner-0.1.41 node_modules/registry-url/index.js
immosquare-cleaner-0.1.40 node_modules/registry-url/index.js
immosquare-cleaner-0.1.39 node_modules/registry-url/index.js
immosquare-cleaner-0.1.38 node_modules/registry-url/index.js
immosquare-cleaner-0.1.32 node_modules/registry-url/index.js
immosquare-cleaner-0.1.31 node_modules/registry-url/index.js
immosquare-cleaner-0.1.30 node_modules/registry-url/index.js
immosquare-cleaner-0.1.29 node_modules/registry-url/index.js
immosquare-cleaner-0.1.28 node_modules/registry-url/index.js