GitLab API icon

GitLab API

Gitlab

Actions1062

Npm_packages → getApiV4PackagesNpmPackage*packageNameDistTags

AI-generated

Summary

Retrieve dist-tags for a specified NPM package from the GitLab API v4's NPM packages endpoint.

Inputs

  • package_name (required) — The name of the NPM package for which to get dist-tags.
  • baseUrl — The base URL of the GitLab instance; defaults to https://gitlab.com.
  • method — HTTP method to call; defaults to GET.
  • skipAuthentication — Optionally skip authentication for the request; defaults to false.

Output shape

a JSON object representing the dist-tags of the specified NPM package as returned by the GitLab API

The output matches the GitLab API response for the /api/v4/packages/npm/-/package/:package_name/dist-tags endpoint. Authentication is applied by default unless explicitly skipped. The package_name parameter is required in the query parameters.

Links

Discussion