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

cli-resumejs

v0.0.6

Published

Resume.js is a simple CLI process manager to manage your node processes,and auto restart your process when exit.

Readme

Resume.js

Resume.js is a simple CLI process manager to manager your node processes,and auto restart your process when exit.

Installation

   [sudo] npm install -g cli-resumejs

How it works

Resume.js let you manage your processes with commands,which communicate with different processes base on UNIX domain socket.

Commands

We can use resume -h to get all commands support

    resume -h
  Usage: resume resume [options]

  Options:

    -h, --help            output usage information
    -V, --version         output the version number
    -r, --run <filename>  run a process which will resume itself when broke.
    -l, --list            list all processes.
    -R, --restart <pid>   restart a running process.
    -s, --stop <pid>      stop a running process
    -L, --log <ppid>      show the log of a resume process

  Examples:

    $ resume -r ./serverA.js
    $ resume -r ./serverB.js
    $ resume -l

Simple Example

Run a node process with resume.js with -r command

    resume -r ./example.js

Then we can list our processes with -l command

    resume -l 

PID    | PPID   | Process Name  | Start Time       | Log File
-------| ------------------------------------------| ---------------------------------------------
1030   | 1026   | ./example.js  | 02 2014 17:50:55 | /Users/cson/.resume/log/1414921836441.log
1036   | 1028   | ./example2.js | 02 2014 17:55:52 | /Users/cson/.resume/log/1414921836782.log

Use -R command to restart a process

    resume -R 1030
    Restart progress 1030 success!

Use -s command to stop a process

    resume -s 1036
    Stop progress 1036 success!

We can also show the log of a process with -L command

    resume -L 975
    Sun Nov 02 2014 17:40:58 GMT+0800 (HKT)
    Run child process ../example/example.js(968) success!
    
    Sun Nov 02 2014 17:41:19 GMT+0800 (HKT)
    child process ../example/example.js(968) exit!
    
    Sun Nov 02 2014 17:41:19 GMT+0800 (HKT)
    Restart child process ../example/example.js(971)
    
    Sun Nov 02 2014 17:41:48 GMT+0800 (HKT)
    child process ../example/example.js(971) exit!
    
    Sun Nov 02 2014 17:41:48 GMT+0800 (HKT)
    Restart child process ../example/example.js(975)

Auto Restart Example

When your process exit ,resume.js will auto restart it ,let your prcess run forever.

Firstly,list all processes:

    resume -l
  
    PID    | PPID   | Process Name  | Start Time       | Log File
    -------| ------------------------------------------| ---------------------------------------------
    1030   | 1026   | ./example.js  | 02 2014 17:50:55 | /Users/cson/.resume/log/1414921836441.log

Then we kill the process with kill command:

    kill -s SIGKILL 1030

Fianlly,list all processes again,and we will see the process has auto restarted:

  
    PID    | PPID   | Process Name  | Start Time       | Log File
    -------| ------------------------------------------| ---------------------------------------------
    1053   | 1026   | ./example.js  | 02 2014 18:09:01 | /Users/cson/.resume/log/1414921836441.log