Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vilicvane/nodemand

Restart Node.js process on required modules change.
https://github.com/vilicvane/nodemand

node node-dev nodemon watch

Last synced: about 2 months ago
JSON representation

Restart Node.js process on required modules change.

Awesome Lists containing this project

README

        

[![NPM Package](https://badge.fury.io/js/nodemand.svg)](https://www.npmjs.com/package/nodemand)

# 🙅‍ Nodemand

Restart Node.js process on required modules change.

A light-weight alternative to tools like `nodemon` and `node-dev`, watches module files found in `ESMLoader` after start and no modification is made to the runtime objects.

It supports both ES module and CommonJS.

## Installation

```bash
yarn global add nodemand
# or
npm install --global nodemand
```

## Usage

```bash
nodemand [options] [...args]
# example
nodemand server.js
```

### Options

- `--debounce `
Debounce restart after change detection, defaults to 1000.
- `--node-modules`
Watch also files under node_modules (symbolic links will be resolved before filtering).
- `--color`, `--no-color`
Force color or no color in console output.
- Other Node.js command line options.

## License

MIT License.