Node-specific PackageUrlFactory.

Hierarchy (view full)

Constructors

Properties

Accessors

Methods

Constructors

Properties

#type: string

Accessors

Methods

  • Will strip unnecessary qualifiers according to PURL-SPECIFICATION.

    Do not abuse qualifiers: it can be tempting to use many qualifier keys but their usage should be limited to the bare minimum for proper package identification to ensure that a purl stays compact and readable in most cases.

    Therefore:

    • "vcs_url" is stripped, if a "download_url" is given.
    • "download_url" is stripped, if it is NPM's default registry ("registry.npmjs.org")
    • "checksum" is stripped, unless a "download_url" or "vcs_url" is given.

    Parameters

    • purl: PackageURL

    Returns PackageURL