1.0.0 • Published 8 years ago

repl-reload v1.0.0

Weekly downloads
5
License
MIT
Repository
github
Last release
8 years ago

repl-reload

Usage

Inside of a node.js REPL, repl-reload will watch a src and dist directory and automatically build and reload a module when files are updated.

require('repl-reload')(varName, srcWaitTime = 1000, distWaitTime = 2000)

Where varName will be the global variable that is set to require('./dist')

srcWaitTime and distWaitTime are optional arguments that specify how long their respective watch functions should be debounced for. (To prevent a rebuild from triggering a reload for every single file that is changed)