Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zinovyev/module-reload
Reload required node modules
https://github.com/zinovyev/module-reload
Last synced: 1 day ago
JSON representation
Reload required node modules
- Host: GitHub
- URL: https://github.com/zinovyev/module-reload
- Owner: zinovyev
- License: mit
- Created: 2018-07-24T08:47:55.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-24T09:46:02.000Z (over 6 years ago)
- Last Synced: 2024-12-10T03:59:48.819Z (25 days ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# module-reload
Reload required node modules
## Install:
```bash
npm install module-reload
```
## Usage:
```javascript
var reload = require("module-reload");
// Require class MyAwesomeClass
var MyAwesomeClass = reload("./my-awesome-class.js");// Require class MyAwesomeClass2 and reload class MyAwesomeClass
var MyAwesomeClass2 = reload("./my-awesome-class2.js");// Reload both classes: MyAwesomeClass and MyAwesomeClass2
reload();```