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 🙏

© 2026 – Pkg Stats / Ryan Hefner

git-gimme

v1.0.2

Published

git subcommand: download a single file or folder from a repo without a full clone

Readme

git-gimme

npm version types CI license

Preview

(っᵔ◡ᵔ)っ ⭐

Ever wanted to download a single file or single folder from a Github repo?

git gimme unjs/giget/templates
git gimme unjs/giget/README.md

Install

npm install -g git-gimme

Installed globally, git gimme works as a native git subcommand.

What's new

| Version | Highlights | | ------- | ---------- | | 1.0.2 | GitHub CLI auth integration and short CLI flags | | 1.0.0 | Download single files from GitHub without cloning entire repositories | | 0.2.0 | Exported function renamed to gitGimme; giget is now a peer dep |

Full history in CHANGELOG.md.

Usage

git gimme <source> [dest] [--ignore='pattern,pattern']

A folder

Lands as ./templates:

git gimme unjs/giget/templates

A single file

Lands as ./README.md:

git gimme unjs/giget/README.md

If the path could be either, git-gimme tries folder first and falls back to file.

A pasted GitHub URL

Both /tree/ and /blob/ links work as they are:

git gimme https://github.com/unjs/giget/tree/main/templates
git gimme https://github.com/unjs/giget/blob/main/README.md

A branch, tag, or commit

git gimme 'unjs/giget/templates#v3.2.0'

Without a #ref, the repository's actual default branch is used.

Somewhere other than the current folder

git gimme unjs/giget/templates ./vendor/templates

Skipping files

git gimme unjs/giget ./giget --ignore='*.md,*.lock'

API

import { gitGimme } from "git-gimme";

const { dir, files } = await gitGimme("unjs/giget/templates", {
  dest: "./vendor/templates",
  ignore: "*.md",
});

console.log(`${files} file(s) in ${dir}`);

gitGimme(input, options?)

| Option | Type | Default | Description | | -------- | -------- | ------------------- | ---------------------------------- | | dest | string | repo or path's name | Where to write the file or folder. | | ignore | string | — | Comma-separated globs to skip. |

Returns { dir, files }: the resolved output path and how many files landed there.

How it works

Core downloading is done by giget — YAGNI 🧘‍♂️. Their page lists everything else that comes with it: private sources via --auth, GitLab / Bitbucket / Sourcehut, offline cache.

As giget is a peer dependency so if already installed, this package simply enhances the DX.

Development

bun install
bun run test
bun run typecheck
bun run build
bun run format

License

MIT © jayF0x