3h-daemon
TypeScript icon, indicating that this package has built-in type declarations

2.1.2 • Public • Published

3h-daemon

A daemon lib.

Usage

In your command line

3h-daemon <command> [options]

    <command>              The command to execute.
                           Default: node

    -h, --help             Show help info.

    -e, --exec             Use `child_process.exec` instead
                           of `child_process.spawn`.

    -a, --args   <args...> The arguments passed to the command.

    -m, --max    <number>  Max restart times.
                           Default: Infinity

    -d, --delay  <number>  Restart delay.

    -t, --time   <format>  Time format.

    -s, --silent           Disable logs.

    --no-stderr            No stderr for the child process.

    --no-stdin             No stdin for the child process.

    --no-stdout            No stdout for the child process.

In your app

See declaration files in typings to learn the APIs.

Package Sidebar

Install

npm i 3h-daemon

Weekly Downloads

1

Version

2.1.2

License

MIT

Unpacked Size

9.61 kB

Total Files

5

Last publish

Collaborators

  • 3h