Socket
Socket
Sign inDemoInstall

@hot-hook/runner

Package Overview
Dependencies
75
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @hot-hook/runner

Runner for applications that use hot-hook


Version published
Weekly downloads
6
decreased by-45.45%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Hot Hook Runner

The Hot Hook runner is a simple process manager that allows you to reload your NodeJS application only when necessary and requested by Hot Hook.

Installation

pnpm add @hot-hook/runner

Utilisation

pnpm hot-runner bin/server.js

To use with Typescript, you can pass a hook like this:

# Run with ts-node
pnpm hot-runner --node-args="--loader=ts-node/esm" bin/server.ts

# Run with TSX
pnpm hot-runner --node-args="--import=tsx" bin/server.ts

Flags

--clear-screen

Clears the console contents after each reload.

--node-args

Arguments to pass to NodeJS. For example, --node-args="--inspect".

--script-args

Arguments to pass to your script. For example, --script-args="--port=3000".

Keywords

FAQs

Last updated on 13 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc