"use strict";
const registryUrl = require("registry-url");
/**
 * Returns the registry needed for a certain package.
 */
function registryFor(pkg) {
    if (pkg.substr(0, 1) === '@') {
        return registryUrl(pkg.split('/')[0]);
    }
    else {
        return registryUrl();
    }
}
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = registryFor;
//# sourceMappingURL=registryFor.js.map