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

@eavid/prods

v0.5.0

Published

prods 是一个进程守护工具

Downloads

15

Readme

PRODS

prods 是一个进程守护工具

目前尚不稳定!

使用

Node

npm install @eavid/prods prod -h

Deno

deno run npm:@eavid/prods -h

命令行接口

prod

Options:
  --home <path>                   指定主目录 (env: PRODS_HOME)
  -V, --version                   output the version number
  -h, --help                      display help for command

Commands:
  guard
  run [options] [id...]           启动进程
  stop [options] [id...]          杀死进程
  restart [options] [id...]       重启进程
  delete|del [options] [id...]    删除进程
  add [options] [path] [args...]  添加进程
  update [options] [id]           修改进程配置
  load <path>                     使用进程文件加载进程,添加到进程列表
  list|ls [id]                    查看进程列表
  entry [options] [id]            连接进程的 stdio

进程管理

stop、restart、delete

  -s, --signal <signal>  kill 信号量
  --timeout <time>       执行 kill 后如果在指定时间内进程没有退出,则执行强制关闭
  --noselect             如果id不存在,直接以异常退出而不是弹出选择

update

  --name <name>           指定name
  --mode <mode>           指定mode
  --version <version>     指定version
  --exec [...args]        指定运行的参数
  --args [...args]        指定运行的参数
  --shell [...path]       指定 shell
  --cwd <path>            指定进程工作目录
  --killSignal <signal>   默认 kill 信号
  --killWait <timeout>    强制关闭等待时间
  --appDataDir <dirname>  指定数据目录
  --logDir <dirname>      指定日志目录
  --noselect              如果id不存在,直接以异常退出而不是弹出选择

add

Arguments:
  path                      指定可执行文件
  args                      指定运行的参数

Options:
  --shell [...path]         指定 shell
  --cwd <path>              指定进程工作目录
  --id <name:mode@version>  指定id
  --killSignal <signal>     默认 kill 信号
  --killWait <timeout>      强制关闭等待时间
  --appDataDir <dirname>    指定数据目录
  --logDir <dirname>        指定日志目录
  --launchNow               添加后立即运行该进程
  -r, --replace             如果存在相同的id,则替换进程
  -c, --config [path]       指定配置文件. 其他选项会覆盖配置文件的选项
  -h, --help                display help for command

app

RPC 接口

RPC 使用了 cpcall

文档待补充