GitLab API

GitlabTool

Actions1095

Npm_packages → getApiV4ProjectsIdPackagesNpm*packageName-*fileName

AI-generated

Summary

Retrieve a specific NPM package file from a GitLab project by specifying the project ID, package name, and file name.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project from which to fetch the package file.
  • package_name (required) — The name of the NPM package to retrieve.
  • file_name (required) — The specific file name within the NPM package to retrieve.
  • method — HTTP method to use for the request; defaults to GET.
  • baseUrl — Base URL for the GitLab instance; defaults to https://gitlab.com.
  • skipAuthentication — If set to true, skips applying authentication.

Output shape

a single record with the content of the specified NPM package file from the GitLab project

The operation returns the package file content located at the given path under the specified project. Authorization is required unless skipAuthentication is enabled. No pagination applies.

Links

Discussion