Skip to content

Sunny-117/nodemon-rs

Repository files navigation

nodemon-rs

A fast implementation of nodemon in Rust. This tool automatically restarts your Node.js application when file changes are detected.

Features

  • Fast file watching using Rust's native file system events
  • Support for file extension filtering
  • Configurable delay between restarts
  • Custom execution command support
  • Written in Rust for better performance

Installation

npm install -g nodemon-rs

Usage

Basic usage:

nodemon-rs app.js

With options:

nodemon-rs --ext=js,mjs,json --ignore=node_modules,dist --exec=node --delay=1.0 app.js

Options

  • --ext: File extensions to watch (comma-separated), default: "js,mjs,json"
  • --ignore: Patterns to ignore (comma-separated), default: []
  • --exec: Command to execute (default: "node")
  • --delay: Delay in seconds before restarting (default: 1.0)

Development

  1. Clone the repository
  2. Install dependencies:
npm install
  1. Build the Rust code:
npm run build
  1. Run tests:
npm test
  1. Local development:
# Link the package globally
npm link

# Now you can use nodemon-rs from anywhere
nodemon-rs your-app.js

License

MIT

About

A fast implementation of nodemon in Rust. This tool automatically restarts your Node.js application when file changes are detected.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors