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

devsuite-command

v0.0.2

Published

Devsuite command gives you quick access to your projects.

Downloads

2

Readme

Devsuite command

Installation

npm install -g devsuite-command

A small utility that lets you easily switch to different projects via your terminal.

Enter a project directory and run devsuite bookmark to bookmark the project. It will register the directory and a name in $HOME/.devsuites.json

Now you can access the project quickly by running devsuite enter [name]. (This will open the default $SHELL in the project directory)

To run any command against the project directory run devsuite [somecommand] [...args] for instance, a file listing: devsuite ls

devsuite will check if the command is in your path, otherwise, it will interpret as devsuite npm run [somecommand]

Why

The reasons this utility comes in handy:

  • Commands like docker-compose require you to run it in the directory containing the docker-compose.yml. This can be inconvenient when you are deep inside a subfolder and need to restart a docker-service. Now with the devsuite command at hand you can always run a command against the project root from any subfolder. Now i can run devsuite docker-compose restart instead of traveling to project-directory and running it.
  • I often need to switch to different projects and start the application(s) by running docker-compose up. I find any open idle terminal and run devsuite enter [project] and get going.

How it works

There are basically two mechanisms:

  • Find the nearest project root directory: This directory is detected because it will have a '.devsuiterc' file in it.

  • Resolve a project name and open a shell with the project directory as working directory. This information is stored inside '.devsuites.json' in your $HOME folder. Entries to this file are added whenever you run devsuite bookmark inside a project root directory. devsuite bookmark will also create a '.devsuiterc' file when none exist in the directory.

  • Run commands against project root:

    • First it will check if the command exists inside your $PATH and run it. It will pass the existing environment and will use the project root directory as working directory.
    • If the command does not exist it will try to interpret it as an npm script. (scripts that are defined in a package.json).