reactive-require
v1.0.1
Published
Require modules as reactive streams.
Downloads
2
Maintainers
Readme
Reactive require
This package provides a variant of Node's require
module loader, that loads modules as reactive streams.
Installation
$ npm i reactive-require
Usage
const require$ = require('reactive-require')(module);
const myModule$ = require$(require.resolve('./path/to/my-module'));
myModule$.subscribe(myModule => {
myModule.doStuff();
});