Gathering detailed insights and metrics for magnum-loader
Gathering detailed insights and metrics for magnum-loader
Gathering detailed insights and metrics for magnum-loader
Gathering detailed insights and metrics for magnum-loader
npm install magnum-loader
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
180 Commits
1 Watchers
5 Branches
1 Contributors
Updated on Oct 26, 2016
Latest Version
5.1.0
Package Id
magnum-loader@5.1.0
Size
19.04 kB
NPM Version
3.10.8
Node Version
6.9.1
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
3
A package.json based plugin loading system for the Magnum DI dependency injection framework.
1$ npm install magnum-loader --save
Magnum Loader is a topologically ordered, hook based plugin system. Plugins can be automatically loaded from the requiring modules package.json, as well as from a configurable plugin directory.
Plugin hook functions are provided several parameters with which to interact with the loader as well as several context dependent properties bound to "this" inside the hook functions.
Plugin Hooks are run in layer order, each plugin has the ability to add dependencies to the Magnum DI injector, allowing subsequent layers access to the dependencies added by previous layers.
A plugin module can return one plugin or several in an array, and each individual plugin can inject a single dependency object, merge with an existing object, inject a factory function, or return an array of the above.
1var dependencies = require('./package.json'); 2var loader = require('magnum-loader') 3 4var options = { 5 prefix: 'myframework', // loads myframework-* 6 layers: ['core', 'dependency', 'platform'], 7 logger: console 8} 9 10loader = loader(dependencies, options) 11 12loader.on('ready', function(){ 13 // All of your loaded plugins are in the injector. 14 loader.load(); 15}); 16 17loader.on('load', function(){ 18 // Runs the start hook on all of your plugins. 19 loader.start() 20}) 21 22loader.on('start', function(){ 23 //Start your actual application here. 24}) 25 26loader.on('stop', function(){ 27 // the stop hook of all of your plugins have 28 // been called. 29 process.exit() 30}) 31 32loader.on('error', function(err){ 33 // Uh oh, there was a problem. 34}) 35 36// Listen for Interrupt and attempt to gracefully stop 37// our plugins. 38process.on('SIGINT', function() { 39 loader.stop(); 40});
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 0/13 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More