Member Junction
    Preparing search index...
    • True when url points at the public npm registry itself. Compares the parsed host — a substring test would also accept https://evil.example/registry.npmjs.org and https://registry.npmjs.org.evil.example. An unparseable URL is not the default, so it goes on to ValidateRegistryUrl, which rejects it.

      Parameters

      • url: string

      Returns boolean