https://github.com/termosa/hode
Hot reloading for NodeJS modules
https://github.com/termosa/hode
Last synced: about 1 year ago
JSON representation
Hot reloading for NodeJS modules
- Host: GitHub
- URL: https://github.com/termosa/hode
- Owner: termosa
- Created: 2018-11-05T08:10:17.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-08T19:37:19.000Z (over 7 years ago)
- Last Synced: 2025-02-10T12:43:53.586Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 51.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hot reloading for Node.js modules

## Usage
```bash
$ node --require hode index.js
```
or at the top of your entry file
```js
require('hode/register')
```
## Tasks
- Wrap modules in Proxy
- Return Proxy instead of a module
- Store modules in a cache
- Watch file updates and update cache
- Support `child_process`, see: CoffeeScript [implementation](https://github.com/jashkenas/coffeescript/blob/master/lib/coffeescript/register.js#L58)