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

node-fed-git

v1.0.4

Published

fed module to manage git repositories under a parent directory

Readme

For Each Git Repository

This fed extension allows to execute git command on several git repositories.

Installation

Please install fed first, then:

$ sudo npm install --global node-fed-git
$ sudo fed fed-add-modules node-fed-git --global

Usage

$ fed [directories...] <git-command>
  • directories Name(s) of directory or group to loop through. If loop through all directories (from config) by default

  • git-command One of the following git command: init, clone, status, checkout, branch, merge, commit, push, add, stash

fed.json

List all directories with their git repository:

{
    "dirs" : [
        {
            "name"   : "repo1",
            "groups" : ["group1"],
            "repository" : {
                "type" : "git",
                "url" :  "path/to/repo1"
            }
        },
        {
            "name"   : "repo2",
            "groups" : ["group1", "group2"],
            "repository" : {
                "type" : "git",
                "url" :  "path/to/repo2"
            }
        },
        {
            "name"   : "repo3",
            "groups" : ["group2"],
            "repository" : {
                "type" : "git",
                "url" :  "path/to/repo3"
            }
        }
    ]
}
  • name {String} Directory name
  • groups {String[]} Optional, Use to groups or alias a directory
  • repository.type {String} When it's "git", fed-git will manage the repository
  • repository.url {String} URL of the remote repository

Examples

Clone all repositories

$ fed clone

On repo1...

Cloning into 'repo1'...
remote: Counting objects: 21, done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 21 (delta 2), reused 19 (delta 0), pack-reused 0
Unpacking objects: 100% (21/21), done.
Checking connectivity... done.

On repo2...

Cloning into 'repo2'...
remote: Counting objects: 15, done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 15 (delta 1), reused 14 (delta 0), pack-reused 0
Unpacking objects: 100% (15/15), done.
Checking connectivity... done.

On repo3...
    
Cloning into 'repo3'...
remote: Counting objects: 12, done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 12 (delta 1), reused 11 (delta 0), pack-reused 0
Unpacking objects: 100% (12/12), done.
Checking connectivity... done.

Get the status of all repositories

$ fed status

On repo1...

On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean

On repo2...

On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean

On repo3...

On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean

Create a branch in all repositories

$ fed checkout -b featureA
On repo1...

Switched to a new branch 'featureA'

On repo2...

Switched to a new branch 'featureA'

On repo3...

Switched to a new branch 'featureA'

Create a branch in some repositories

$ fed repo1 repo3 git checkout -b featureB
On repo1...

Switched to a new branch 'featureB'

On repo3...

Switched to a new branch 'featureB'

Create a branch for each repositories on a group

$ fed group2 checkout -b featureC
On repo2...

Switched to a new branch 'featureC'

On repo3...

Switched to a new branch 'featureC'