Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ayan4m1/git-clone-sparse

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ayan4m1/git-clone-sparse

CLI and library to perform sparse Git clones.

  • 0.4.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
80
increased by15.94%
Maintainers
1
Weekly downloads
 
Created
Source

git-clone-sparse

npm version

features

  • Written in TypeScript
  • Small footprint
  • Saves time when cloning large repos

requirements

  • Node 18+

installation

npm i -g @ayan4m1/git-clone-sparse

usage

git-clone-sparse ./local-dir https://github.com/user/repo ./path1/ ./path2/

OR

git-clone-sparse -g ./local-dir https://github.com/user/repo "**/*.safetensors"

Each command creates a directory called local-dir in your current working directory and then clones the specified URL. If you use glob mode, pass the -g flag. If you want to use a list of directories instead, do not use the -g flag.

api

import cloneSparse from '@ayan4m1/git-clone-sparse';

...

await cloneSparse(
  './new-repo-dir', // working copy directory
  'https://github.com/ayan4m1/git-clone-sparse' // repo URL
  ['./README.md'] // paths to include,
  {
    globs: false,
    force: false
  } // optional options object
);

FAQs

Package last updated on 18 Oct 2024

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