Skip to content

eobodo/node-reload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-reload

Configuration based file watcher/reloader for node.js.

npm install -g node-reload

Usage

Here's a sample configuration file. Current convention is to name it "reload-config.js".

let config = {
  'entry': 'test/main.js',
  'args': {
    'source': 'path/to/somewhere.js',
  },
  'watch': ['./*.js', './test/*.js'],
  'log': true,
};

module.exports = config;

Load exported configuration.

node-reload "path/to/reload-config.js"

API

{
  //This file will reload on change
  "entry": String, 
  //Object will be convert into an argument string
  "args": Object <Any>,
  //Array of files to watch
  "watch": Array <String>,
  //Log events to console
  "log": Boolean,
}

About

Live edit-reload within the nodejs environment.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published