npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

gf2

v0.0.6

Published

A simple CLI tool for downloading specific folders from GitHub repositories.

Downloads

394

Readme

GF2 - GitHub Folder Fetcher

GF2 is a simple CLI tool that allows you to download specific folders from GitHub repositories with ease. Using this tool, you can fetch only the necessary folder from a GitHub repository without having to clone the entire repository.

Features

  • Download specific folders from any public GitHub repository.
  • Simple CLI interface that can be used directly via npx.
  • Lightweight: Only fetches the folder you need, making it fast and efficient.
  • Supports GitHub Enterprise: Fetch folders from GitHub Enterprise repositories.

Installation

Using npx

You can use the tool directly with npx without installing it globally:

npx gf2 <github-folder-url>

Where <github-folder-url> is the URL of the GitHub folder you want to download.

Installing Locally

Alternatively, you can install gf2 locally as a dependency in your project:

npm install gf2 --save-dev

Then, use it by running:

npx gf2 <github-folder-url>

Usage

Once installed, you can fetch any folder from a GitHub repository by running the following command:

npx gf2 <github-folder-url>

Example:

To download the src/templates/TypeScript/Express/MongoDB/JWT folder from the dollfin-templates repository, run:

npx gf2 https://github.com/shaantanu9/dollfin-templates/tree/main/src/templates/TypeScript/Express/MongoDB/JWT

This will download the folder to your current directory, named after the repository folder.

Development

Prerequisites

  • Node.js (>= 14.x)
  • npm or yarn

Installing Dependencies

To set up the development environment, run:

npm install

Running the Tool Locally

If you're working on the tool or want to test it locally, you can run it using:

npm start

This will run the tool with the ts-node interpreter.

Building the Project

To compile the TypeScript files to JavaScript, run:

npm run build

Running Tests

Currently, there are no tests defined, but you can set up testing frameworks like Jest or Mocha for future test setups.

Contributing

We welcome contributions to the project! If you'd like to contribute, please fork the repository, make your changes, and submit a pull request.

Steps to Contribute:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-xyz).
  3. Make your changes and commit them (git commit -m 'Add new feature').
  4. Push to your forked repository (git push origin feature-xyz).
  5. Create a pull request to the main repository.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

Created by Shantanu Bhat
LinkedIn

Acknowledgments

  • Giget: This tool relies on the giget package for downloading GitHub folders.
  • Open Source Community: Thank you to all the contributors who help make the open-source community thrive!