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

@hash-bang/pss

v1.0.2

Published

Simple Linux process grep and kill

Downloads

8

Readme

@hash-bang/PSS

A nicer pgrep / pkill.

Features:

  • Auto-sudo mode to enable all processes can be killed
  • Globbing of process commands, PIDs and open ports are all supported
  • --zap mode will politely try to kill a process (regular kill), wait then agressively kill (-9)
  • Fancy colors to make reading the output easier
Usage: pss [-k | -z] [globs...]

Options:
  -a, --all            Show all processes not just this users
  -i, --interactive    Ask about all found processes
  -l, --list           Show all matching processes
  -f, --force          Force kill processes (implies --kill)
  -k, --kill           Attempt to kill found processes
  -n, --name           Match the name of the command only instead of args
  -p, --pid <pids...>  CSV of specific Process IDs to limit to (or specify
                       multiple times)
  -v, --verbose        Be verbose about what is happening
  -w, --wait <time>    Wait for a valid timestring before zapping (default:
                       "3s")
  -z, --zap            Try to politely kill a process then agressively (implies
                       --kill)
  --parent-pid <pid>   Specify the parent pid to use unless --no-skip-self
                       (internally used when sudo-ing)
  --no-case            Disable case insesitive searching
  --no-sudo            Do not try to elevate this process to sudo if possible
  --no-skip-self       Exclude the PSS process from the list
  --no-truncate        Do not truncate items so that only one listing appears
                       on a line
  --no-surround        Disable adding globstars at the start and end of search
                       strings
  --no-tree            Dont attempt to kill all sub-processes on --force /
                       --zap
  -h, --help           display help for command

Notes:
  * Globs can be any valid string, if the string is numeric and begins with `:` its assumed to be a port e.g. `:80` fetches the process listening on port 80
  * If --kill, --force, --zap and --list are omitted --list is assumed
  * --pid Can take a CSV of PIDs to filter by