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

easy-worktree

v0.1.0

Published

Easy Worktree - A simple wrapper around git worktree

Readme

Easy Worktree

A simple wrapper around git worktree that makes managing Git worktrees effortless.

Features

  • 🚀 Simple commands to create worktrees as sibling directories
  • 📁 Automatically copies all .env* and dev.vars files (including nested ones)
  • 🔄 Sanitizes branch names (replaces / with - for directory names)
  • 📋 List all worktrees
  • 🗑️ Easy worktree removal

Installation

npm install -g easy-worktree

Prerequisites

  • Node.js >= 14
  • Rust and Cargo (install from rustup.rs)
  • Git with worktree support

Usage

Create a worktree from existing branch

ew <branch_name>

Creates a worktree at ../<branch_name> for the existing branch. Branch names with / are converted to - for the directory name.

Example:

ew feature/new-ui
# Creates worktree at ../feature-new-ui for branch feature/new-ui

Create a worktree with a new branch

ew -b <branch_name>

Creates a new branch and worktree at ../<branch_name>.

Example:

ew -b feature/api-update
# Creates new branch feature/api-update and worktree at ../feature-api-update

List all worktrees

ew list

Shows all worktrees in the repository.

Remove a worktree

ew remove <worktree_path>

Removes the specified worktree.

Example:

ew remove ../feature-new-ui

How it works

  1. Creates a git worktree as a sibling directory (../)
  2. Sanitizes branch names by replacing / with - for directory names
  3. Recursively copies all .env* and dev.vars files from the current directory to the new worktree
  4. Preserves directory structure when copying environment files

Environment File Copying

The tool automatically copies:

  • All files matching .env* pattern (e.g., .env, .env.local, .env.production)
  • All dev.vars files
  • Nested environment files in subdirectories

If no environment files are found, the tool continues without error.

Why Easy Worktree?

Git worktrees are powerful but can be tedious to set up, especially when you need to:

  • Remember the exact syntax
  • Copy configuration files
  • Handle branch name sanitization

ew automates all of this, making worktree management as simple as possible.

License

MIT