Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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();

```