
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
@megatherium/gitlab-api
Advanced tools
See the whole [documentation](https://megatherium.gitlab.io/gitlab-api) or the [coverage report](https://megatherium.gitlab.io/gitlab-api/coverage).
See the whole documentation or the coverage report.
Install the dependency:
$ npm install @megatherium/gitlab-api
Set up environment variables.
Start using it:
import gitlab from '@megatherium/gitlab-api';
(async() => {
await gitlab.createProject('my-test-project');
})();
Configure an environment variable to give the module access to your GitLab API.
MEGATHERIUM_GITLAB_ACCESS_TOKEN or GITLAB_TOKEN - the access token to login to GitLab instanceMEGATHERIUM_GITLAB_BASE_URL - the base url of the github repository; default: https://gitlab.com/api/v4(pathOrName: string, additionalData?: object): Promise Creates a new pipeline schedule for a project.(projectIdOrName: int | string, userId: int, accessLevel: int, additionalData?: object): Promise<object> Adds a member to a project.(projectIdOrName: int | string, description: string, cron: string, additionalData?: object): Promise Creates a new project.(projectIdOrName: int | string, variableData: object): Promise Creates a new variable for a GitLab project.(projectIdOrName: int | string, variableData: object): Promise Creates a new variable for a GitLab project.(parameters: object): Promise Adds a new ssh key to the current user.(projectIdOrName: int | string, additionalParameters?: object): Promise Retrieves the information about a project.(additionalParameters?: object): Promise<Array<object>> Lists all projects from the current namespace, optionally filtered by parameters.(projectIdOrName: int | string, additionalParameters?: object): Promise<Array<object>> Lists all the members of a project.(projectIdOrName: int | string, additionalParameters?: object): Promise<Array<object>> Lists the pipeline schedules from a specific project.(projectIdOrName: int | string): Promise<Array<object>> Lists the variables added to a project.(): Promise<Array<object>> Lists the ssh keys from the current user.(additionalParameters?: object): Promise<Array<object>> Lists the users. Can be filtered.(method: string, url: string, parameters?: object) Performs an authenticated API request on the GitLab API.(pathIdOrName: string): Promise Deletes a project permanently.(projectIdOrName: int | string, userId: int, additionalParameters?: object): Promise Removes a member from a project.(projectIdOrName: int | string, pipelineScheduleId: int): Promise Removes a pipeline schedule from a project.(projectIdOrName: int | string, variableName: string, additionalParameters?: object): Promise Deletes a variable from a project.(int: keyId): Promise Deletes a key of the current user permanently.(projectIdOrName: int | string, userId: int, accessLevel: int, additionalData?: object): Promise<object> Updates the member of a project.(projectIdOrName: int | string, pipelineScheduleId: int, additionalData?: object): Promise Updates a pipeline schedule of a project.(projectIdOrName: int | string, variableName: string, variableValue: string, additionalData?: object): Promise Updates the data from a project variable.The following scripts can be executed using npm run:
build Builds the module.build-docs Builds the documentation.build-source Builds the source code.build-tests Builds test-cases from jsdoc examples.clear Clears the module from a previous build.clear-coverage Clears the coverage reports and caches.clear-docs Clears the previous documentation build.clear-source Clears the previous source build.clear-tests Clears the generated jsdoc example test files.fix Runs all automated fixes.fix-lint Automatically fixes linting problems.release Runs semantic release. Meant to be only executed by the CI, not by human users.test Executes all tests.test-coverage Generates coverage reports from the test results using nyc.test-deps Executes a depcheck.test-e2e Executes End-to-End-Tests using cucumber.test-integration Executes integration tests using jest.test-lint Executes linting tests using eslint.test-unit Executes unit tests using mocha.update Checks for dependency updates using renovate.FAQs
See the whole [documentation](https://megatherium.gitlab.io/gitlab-api) or the [coverage report](https://megatherium.gitlab.io/gitlab-api/coverage).
We found that @megatherium/gitlab-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.

Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.

Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.