New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@slimio/gitlab

Package Overview
Dependencies
Maintainers
5
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@slimio/gitlab

Download and extract gitlab repository

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-42.86%
Maintainers
5
Weekly downloads
 
Created
Source

Gitlab

version Maintenance MIT dep size known vulnerabilities Build Status

Download and (optionaly) extract gitlab repository archive.

Requirements

  • Node.js v12 or higher

Getting Started

This package is available in the Node Package Repository and can be easily installed with npm or yarn.

$ npm i @slimio/gitlab
# or
$ yarn add @slimio/gitlab

Usage example

const download = require("@slimio/gitlab");

async function main() {
    const tarGZPath = await download("SlimIO.is");
    console.log(tarGZPath);
}
main().catch(console.error);

API

download(repo: String, options?): Promise< String >

Download a given "public" repository ! Return the name of the .tar.gz file (or the name of the extracted directory).

Repository should be formatted like that:

(org|username).repository_fullname

Available options are:

nametypedefaultdescription
branchstringmasterGit branch to download
deststringprocess.cwd()Tar/Directory destination
extractbooleanfalseExtract .tar.gz file
unlinkbooleantrueRemove .tar.gz file on extraction
authstringundefinedBasic Authentication for private repository

Env

To be able to work on the project, please create a root .env file with these:

GIT_TOKEN=token_here

Dependencies

NameRefactoringSecurity RiskUsage
@slimio/isMinorLowType Checker
follow-redirectsMinorLowHTTP Request with URL redirection support
tar-fs⚠️MajorHighExtract tar archive

License

MIT

Keywords

FAQs

Package last updated on 31 Mar 2020

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc