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

my_wins

v1.2.2

Published

Automates starting and laying out your console windows for tsc, babel, tests, verdaccio, etc...

Downloads

5

Readme

my_wins

Automates starting your console windows for tsc, babel, tests, verdaccio, etc...

my_wins opens cmd promts for you, position them nicely and types-in your commands into them.

Why?

Why this is better than just running cmd/bat files?

Because you can

  • [Ctrl+C] - to stop your command

  • [UP] -> [Enter] - to restart your command

  • But still you don't need to type in the command for the very first time

  • And you don't have to open those consoles manually

  • And you don't have to position them ether

Installation

npm i my_wins

or

npm i my_wins -g

Usage

Create "my_wins.json" in your project with contents:

{
	"wins": {
		"cmd1": "echo cm1",
		"cmd2": "echo cmd2"
	}
}

and run

npm run my_wins

This will

  • Open command line windows for each command
  • Set titles of this windows
  • Position windows on your screen
  • Execute commands in them

Now if you need to restart or pause/resume any of your cmd just do

  • [Ctrl+C] - to stop

  • [UP] -> [Enter] - to restart

my_wins was tested only on Windows 10 and may have issues on other OSes

my_wins uses json5 to parse it's settings, so you can leave trailing commas or remove quotes around json-keys (see json5 package for details).

All options

You can also create "my_wins_personal.json" which can partially or fully overrides my_wins.

It's recommended to gitignore "my_wins_personal.json".

    {
        "startTimeout": 700,
        "x": 0,           
        "y": 0,         
        "height": 120,    
        "width": 500,     
        "wins": {          
            "foo":"my command line 1",
            "baz":{"no_run":true, "cmd":"my command line 2"},
            "webstorm": {"app":true, "cmd":"\"C:\\Program Files\\JetBrains\\WebStorm 2019.2\\bin\\webstorm64.exe\""} // notice escaped quotes !
            // "commented": "Comments and trailing commas are supported!",
        },
    }

x,y,height,width number - is first cmd window's position and size

y gets incremented by height for each next window

wins object- your windows

  • if you enter a string it resolves to {"cmd":"string"}
  • cmd string - your command
  • no_run boolean - types in the command, but won't hit "Enter".
  • app boolean - runs yours command as Windows application, not as console. (Incompartible with "no_run").

Author - Yuri Yaryshev, 2020

Unlicensed

Changelog

1.0.13

  • Fixed webstorm example in readme

1.0.12

  • Fixed JSON5 parsing errors was silently ignored.

1.0.11

  • Added "app" flag to run applications instead of console windows.