
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
live-modules
Advanced tools
Allows modules to be edited while in use, modules will be reloaded into running application if edited.
Node modules can automatically update themselves while app is running if modules are edited. No need to restart the app every time!
Why Live Modules?
live modules allow you to make changes to a module while your app is running.
To install Live Modules:
npm install live-modules
Documentation:
var lm = require('live-modules').createLiveModules(require);
lm.require(mod, vrr, [callback]);
mod:
type: string
holds: module name or filename
vrr:
type: string
holds: global variable to assign module to
callback:
gives: err, vrr, mod, status as args
err: error [Error]
vrr: name of global variable string
mod: module name or filename string
status: the status of modules loading string {loaded|updated|update_failed}
Example module:
module.exports = {
name: 'myModule',
func: function () {
/* does stuff */
}
};
Example app:
var lm = require('live-modules').createLiveModules(require);
lm.require('myModule','myVar', function (err, vrr, mod, status) {
console.log(status);
if (err) {
console.log(err);
} else {
/* do stuff with module */
console.log(myVar.name); // or console.log(global[vrr].name);
myVar.func(); // or global[vrr].func();
}
});
Created By:
Michaelangelo Jong
FAQs
Allows modules to be edited while in use, modules will be reloaded into running application if edited.
We found that live-modules demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.