GitLab API

GitlabTool

Actions1095

Npm_packages → getApiV4PackagesNpmPackage*packageNameDistTags

AI-generated

Summary

Retrieve the distribution tags of a specified NPM package hosted on a GitLab instance's API v4.

Inputs

  • package_name (required) — The name of the NPM package to get distribution tags for.
  • baseUrl — The base URL of the GitLab instance; defaults to https://gitlab.com.
  • skipAuthentication — Optionally skip authentication; defaults to false.

Output shape

a JSON object containing the distribution tags of the specified NPM package

The operation makes a GET request to the path /api/v4/packages/npm/-/package/*package_name/dist-tags on the specified GitLab baseUrl. Authentication is required unless skipAuthentication is set to true. The package_name parameter is mandatory and supplied as a query parameter.

Links

Discussion