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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@doomedramen/auto

v1.0.5

Published

A CLI tool to detect package managers and run commands.

Readme

@doomedramen/auto

@doomedramen/auto is a CLI tool that automatically detects the package manager (npm, yarn, pnpm, bun, deno) in your project and runs commands accordingly. This allows you to use a consistent command (auto) across different projects without worrying about which package manager is in use.

Features

  • Automatically detects npm, yarn, pnpm, bun, and deno.
  • Seamlessly runs package manager commands.
  • Supports executing packages with auto x <package> (equivalent to npx, yarn dlx, pnpm dlx, bun x, deno run -A).

Installation

Global Installation (Recommended)

Install @doomedramen/auto globally to use the auto command in any project:

npm install -g @doomedramen/auto

Local Installation

You can also install @doomedramen/auto as a dev dependency in a specific project:

npm install --save-dev @doomedramen/auto

Then you can run it via npx auto ... or by adding it to your package.json scripts.

Usage

Once installed globally, you can use the auto command in any project directory that uses a supported package manager.

Basic Commands

  • auto install: Installs project dependencies (e.g., runs npm install, yarn install, etc.).
  • auto add <package>: Adds a new package (e.g., runs npm install <package>, yarn add <package>, etc.).
  • auto remove <package>: Removes a package (e.g., runs npm uninstall <package>, yarn remove <package>, etc.).
  • auto run <script>: Runs a script defined in your package.json (e.g., runs npm run <script>, yarn <script>, etc.).

Executing Packages (like npx)

The auto x command allows you to execute packages without installing them globally, similar to npx, yarn dlx, pnpm dlx, bun x, or deno run -A.

auto x create-react-app my-app
auto x cowsay "Hello World"

Passing Arguments

Arguments are passed through to the underlying package manager command:

auto add typescript --dev
auto run build --watch

How it Works

@doomedramen/auto detects the package manager by looking for specific lock files or configuration files in the current directory and its parent directories:

  • yarn.lock for Yarn
  • package-lock.json for npm
  • pnpm-lock.yaml for pnpm
  • bun.lockb or bun.lock for Bun
  • deno.json or deno.jsonc for Deno

If no lock file is found, it will throw an error.

Supported Package Managers

  • npm
  • Yarn
  • pnpm
  • Bun
  • Deno

Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue if you have suggestions or find a bug.

  1. Fork the repository.
  2. Create your feature branch (git checkout -b feature/AmazingFeature).
  3. Commit your changes (git commit -m 'Add some AmazingFeature').
  4. Push to the branch (git push origin feature/AmazingFeature).
  5. Open a Pull Request.

License

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