Socket
Socket
Sign inDemoInstall

@gitbeaker/core

Package Overview
Dependencies
3
Maintainers
1
Versions
246
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gitbeaker/core


Version published
Maintainers
1
Created

Package description

What is @gitbeaker/core?

@gitbeaker/core is a comprehensive Node.js library for interacting with the GitLab API. It provides a wide range of functionalities to manage projects, repositories, issues, users, and more within a GitLab instance.

What are @gitbeaker/core's main functionalities?

Project Management

This feature allows you to create and manage projects within a GitLab instance. The code sample demonstrates how to create a new project using the GitLab API.

const { Gitlab } = require('@gitbeaker/node');
const api = new Gitlab({ token: 'your_access_token' });

async function createProject() {
  const project = await api.Projects.create({ name: 'new-project' });
  console.log(project);
}

createProject();

Issue Management

This feature allows you to create and manage issues within a GitLab project. The code sample demonstrates how to create a new issue in a specific project.

const { Gitlab } = require('@gitbeaker/node');
const api = new Gitlab({ token: 'your_access_token' });

async function createIssue() {
  const issue = await api.Issues.create(1, { title: 'New Issue', description: 'Issue description' });
  console.log(issue);
}

createIssue();

User Management

This feature allows you to manage users within a GitLab instance. The code sample demonstrates how to list all users using the GitLab API.

const { Gitlab } = require('@gitbeaker/node');
const api = new Gitlab({ token: 'your_access_token' });

async function listUsers() {
  const users = await api.Users.all();
  console.log(users);
}

listUsers();

Repository Management

This feature allows you to manage repositories and their contents within a GitLab project. The code sample demonstrates how to list all files in a repository.

const { Gitlab } = require('@gitbeaker/node');
const api = new Gitlab({ token: 'your_access_token' });

async function listRepositoryFiles() {
  const files = await api.Repositories.tree(1);
  console.log(files);
}

listRepositoryFiles();

Other packages similar to @gitbeaker/core

Changelog

Source

39.21.1 (Sat Oct 21 2023)

↕️ Dependencies
  • @gitbeaker/cli, @gitbeaker/core, @gitbeaker/requester-utils, @gitbeaker/rest
    • Updating all dependencies to their latest supported versions #3441 (@jdalrymple)
Authors: 1

Readme

Source


gitbeaker


pipeline status coverage report Code Climate maintainability Dependency Status Auto All Contributors Prettier Licence: MIT Install Size: Core

Core SDK for the GitLab API. This is not intended for direct use, see @gitbeaker/rest or gitbeaker/cli instead.

Table of Contents

Usage

Browsers Load @gitbeaker/core directly from esm.sh
<script type="module">
  import { Gitlab } from 'https://esm.sh/@gitbeaker/core';
</script>
Deno Load @gitbeaker/core directly from esm.sh
import { Gitlab } from 'https://esm.sh/@gitbeaker/core?dts';
Node 18+

Install with npm install @gitbeaker/core, or yarn add @gitbeaker/core

import { Gitlab } from '@gitbeaker/core';

Supported APIs

Agents 🦊 ⌨️
AlertManagement 🦊 ⌨️
ApplicationAppearance 🦊 ⌨️
ApplicationPlanLimits 🦊 ⌨️
ApplicationSettings 🦊 ⌨️
ApplicationStatistics 🦊 ⌨️
Applications 🦊 ⌨️
AuditEvents 🦊 ⌨️
Avatar 🦊 ⌨️
Branches 🦊 ⌨️
BroadcastMessages 🦊 ⌨️
CommitDiscussions 🦊 ⌨️
Code Suggestions 🦊 ⌨️
Commits 🦊 ⌨️
Composer 🦊 ⌨️
Conan 🦊 ⌨️
ContainerRegistry 🦊 ⌨️
DashboardAnnotations 🦊 ⌨️
Debian 🦊 ⌨️
DependencyProxy 🦊 ⌨️
DeployKeys 🦊 ⌨️
DeployTokens 🦊 ⌨️
Deployments 🦊 ⌨️
DockerfileTemplates 🦊 ⌨️
Environments 🦊 ⌨️
EpicAwardEmojis 🦊 ⌨️
EpicDiscussions 🦊 ⌨️
EpicIssues 🦊 ⌨️
EpicLabelEvents 🦊 ⌨️
EpicLinks 🦊 ⌨️
EpicNotes 🦊 ⌨️
Epics 🦊 ⌨️
ErrorTrackingClientKeys 🦊 ⌨️
ErrorTrackingSettings 🦊 ⌨️
Events 🦊 ⌨️
Experiments 🦊 ⌨️
ExternalStatusChecks 🦊 ⌨️
FeatureFlagUserLists 🦊 ⌨️
FeatureFlags 🦊 ⌨️
FreezePeriods 🦊 ⌨️
GeoNodes 🦊 ⌨️
GeoSites 🦊 ⌨️
GitLabCIYMLTemplates 🦊 ⌨️
GitignoreTemplates 🦊 ⌨️
GitlabPages 🦊 ⌨️
GoProxy 🦊 ⌨️
GroupAccessRequests 🦊 ⌨️
GroupAccessTokens 🦊 ⌨️
GroupActivityAnalytics 🦊 ⌨️
GroupEpicBoards 🦊 ⌨️
GroupBadges 🦊 ⌨️
GroupCustomAttributes 🦊 ⌨️
GroupDORA4Metrics 🦊 ⌨️
GroupHooks 🦊 ⌨️
GroupImportExports 🦊 ⌨️
GroupInvitations 🦊 ⌨️
GroupIssueBoards 🦊 ⌨️
GroupIterations 🦊 ⌨️
GroupLDAPLinks 🦊 ⌨️
GroupLabels 🦊 ⌨️
GroupMemberRoles 🦊 ⌨️
GroupMembers 🦊 ⌨️
GroupMilestones 🦊 ⌨️
GroupProtectedEnvironments 🦊 ⌨️
GroupPushRules 🦊 ⌨️
GroupRelationExports 🦊 ⌨️
GroupReleases 🦊 ⌨️
GroupRepositoryStorageMoves 🦊 ⌨️
GroupSAMLIdentities 🦊 ⌨️
GroupSAMLLinks 🦊 ⌨️
GroupSCIMIdentities 🦊 ⌨️
GroupServiceAccounts 🦊 ⌨️
GroupVariables 🦊 ⌨️
GroupWikis 🦊 ⌨️
Groups 🦊 ⌨️
Helm 🦊 ⌨️
Import 🦊 ⌨️
InstanceLevelCICDVariables 🦊 ⌨️
Integrations 🦊 ⌨️
IssueAwardEmojis 🦊 ⌨️
IssueDiscussions 🦊 ⌨️
IssueIterationEvents 🦊 ⌨️
IssueLabelEvents 🦊 ⌨️
IssueLinks 🦊 ⌨️
IssueMilestoneEvents 🦊 ⌨️
IssueNoteAwardEmojis 🦊 ⌨️
IssueNotes 🦊 ⌨️
IssueStateEvents 🦊 ⌨️
IssueWeightEvents 🦊 ⌨️
Issues 🦊 ⌨️
IssuesStatistics 🦊 ⌨️
JobArtifacts 🦊 ⌨️
Jobs 🦊 ⌨️
Keys 🦊 ⌨️
License 🦊 ⌨️
LicenseTemplates 🦊 ⌨️
LinkedEpics 🦊 ⌨️
Lint 🦊 ⌨️
Markdown 🦊 ⌨️
Maven 🦊 ⌨️
MergeRequestApprovals 🦊 ⌨️
MergeRequestAwardEmojis 🦊 ⌨️
MergeRequestContextCommits 🦊 ⌨️
MergeRequestDiscussions 🦊 ⌨️
MergeRequestDraftNotes 🦊 ⌨️
MergeRequestLabelEvents 🦊 ⌨️
MergeRequestMilestoneEvents 🦊 ⌨️
MergeRequestNoteAwardEmojis 🦊 ⌨️
MergeRequestNotes 🦊 ⌨️
MergeRequests 🦊 ⌨️
MergeTrains 🦊 ⌨️
Metadata 🦊 ⌨️
Migrations 🦊 ⌨️
NPM 🦊 ⌨️
Namespaces 🦊 ⌨️
NotificationSettings 🦊 ⌨️
NuGet 🦊 ⌨️
PackageRegistry 🦊 ⌨️
Packages 🦊 ⌨️
PagesDomains 🦊 ⌨️
PersonalAccessTokens 🦊 ⌨️
PipelineScheduleVariables 🦊 ⌨️
PipelineSchedules ⌨️
PipelineTriggerTokens 🦊 ⌨️
Pipelines 🦊 ⌨️
ProductAnalytics 🦊 ⌨️
ProjectAccessRequests 🦊 ⌨️
ProjectAccessTokens 🦊 ⌨️
ProjectAliases 🦊 ⌨️
ProjectBadges 🦊 ⌨️
ProjectCustomAttributes 🦊 ⌨️
ProjectDORA4Metrics 🦊 ⌨️
ProjectHooks 🦊 ⌨️
ProjectImportExports 🦊 ⌨️
ProjectInvitations 🦊 ⌨️
ProjectIssueBoards 🦊 ⌨️
ProjectIterations 🦊 ⌨️
ProjectLabels 🦊 ⌨️
ProjectMembers 🦊 ⌨️
ProjectMilestones 🦊 ⌨️
ProjectProtectedEnvironments 🦊 ⌨️
ProjectPushRules 🦊 ⌨️
ProjectRelationsExport 🦊 ⌨️
ProjectReleases 🦊 ⌨️
ProjectRemoteMirrors 🦊 ⌨️
ProjectRepositoryStorageMoves 🦊 ⌨️
ProjectSnippetAwardEmojis 🦊 ⌨️
ProjectSnippetDiscussions 🦊 ⌨️
ProjectSnippetNotes 🦊 ⌨️
ProjectSnippets 🦊 ⌨️
ProjectStatistics 🦊 ⌨️
ProjectTemplates 🦊 ⌨️
ProjectVariables 🦊 ⌨️
ProjectVulnerabilities 🦊 ⌨️
ProjectWikis 🦊 ⌨️
Projects 🦊 ⌨️
ProtectedBranches 🦊 ⌨️
ProtectedTags 🦊 ⌨️
PyPI 🦊 ⌨️
ReleaseLinks 🦊 ⌨️
Repositories 🦊 ⌨️
RepositoryFiles 🦊 ⌨️
RepositorySubmodules 🦊 ⌨️
ResourceGroups 🦊 ⌨️
RubyGems 🦊 ⌨️
Runners 🦊 ⌨️
Search 🦊 ⌨️
SearchAdmin 🦊 ⌨️
SecureFiles 🦊 ⌨️
ServiceData 🦊 ⌨️
SidekiqMetrics 🦊 ⌨️
SidekiqQueues 🦊 ⌨️
SnippetRepositoryStorageMoves 🦊 ⌨️
Snippets 🦊 ⌨️
Suggestions 🦊 ⌨️
SystemHooks 🦊 ⌨️
Tags 🦊 ⌨️
TodoLists 🦊 ⌨️
Topics 🦊 ⌨️
UserCustomAttributes 🦊 ⌨️
UserEmails 🦊 ⌨️
UserGPGKeys 🦊 ⌨️
UserImpersonationTokens 🦊 ⌨️
UserSSHKeys 🦊 ⌨️
UserStarredMetricsDashboard 🦊 ⌨️
Users 🦊 ⌨️

Contributors

Justin DalrympleDylan DesRosierMike WyattCory ZibeillMartin Bourakira345Pavel Birukov Joseph PetersenLouis CherelAdam DehnelEv HausLoïc MahieuGiuseppe AngrijennpariseOscarDaniel RufschindldAlvaroDaniel MooreDylan M. TaylorCorentin MorsxatavianYevgeny PetukhovMickaël TricotAndreaFlavien Bridault
s-kazukiKipras Melnikovasxieyust1gokMax WittigNiklas LochschmidtIlya DusOmar AwamryHennadii VaravaxiezhtMartin HelmichSean McGivernClemens LiebVojtěch SajdldividoVincent BoulayeAliyss SnowMahmoud SaadaFeng YuRoy JacobsPaul LemkeIan JenkinsnilennoctLaffargue MichaelMartin HowarthChristoph Lehmann
Frank VSalim BenabbouTamás Török-VistaiMartin BenningerfewiedenJeff PeltonClaude AbounegmStefan HallJordan Walletzhao0Joshua GrossoIsaac Ouellet TherrienRajat SharmaCesar B.Igor KatsubaMichael TownsendbodtxArtemMunif TanjimQuentin DreyerNorm MacLennanjnovickFabian AussemsMichael MatzkaCraigAllardyceBruno Guimarães
Lukas EipertMaximilian KraußEvolution EngineeringWEBER LoganAnton ZhukovNicholas LoomansCarl KittelbergerPatrik VotočekKyrylo FedorovClaudio VellageSeb0uilRafael MelloThéis BazinSpencer SalisburySimone CorsiBambiiWillArnaudTABenjamin BeretAlessandro Diezartlist-scottambroseMartin DreherElan Ruusamäeartemoire

This started as a fork from node-gitlab-legacy but I ended up rewriting much of the code. Here are the original work's contributors.

Keywords

FAQs

Last updated on 21 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc