# Packages
SPDX-License-Identifier: Apache-2.0
Copyright © 2023 The listen.dev team <[email protected]>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
# Functions
DefaultVersionResolutionStrategy returns the highest semantic version in a collection of versions.
GetFromRegistry asks to the npm registry for the details of a package by name, and optionally, by version.
GetPackageJSONFromDir creates a PackageJSON instance from the existing package.json in dir, if any.
GetPackageLockJSONFromDir creates a PackageLockJSON instance from the existing package-lock.json in dir, if any.
No description provided by the author
No description provided by the author
No description provided by the author
NewPackageLockJSON is a factory to create an empty (and invalid) PackageLockJSON.
No description provided by the author
NewPackageLockJSONFromDir creates a PackageLockJSON instance from the package.json in the dir directory (if any).
NewPackageLockJSONFromReader creates a PackageLockJSON instance from by reading the contents of a package-lock.json file.
Version returns the npm version.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
The VersionResolutionStrategy is a function that, given a version constraints, returns back an exact version.