
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
bring-modules
Advanced tools
.("""") (j)
(_(_ __(_ ) (n o d e)
_ _ _ _ / / / (n) (s)
))`)`) ___ )L __ __ / / / n \|/ \|/
((,(,' ((_( (( (('(| n \|/ | |
Part of the Node Water collection.
"Bring" follows an inversion of control pattern similar to Java Spring. It helps you easily build applications from modules which you link together using configuration, not code.
At runtime Bring reads your configuration file(s) and instantiates the modules that are specified. It sets options, calls functions on those modules and can pass refences between them or to your main application. Using bring you can have an application bootstrapped, up and running almost entirely by configuration. This is great if you want to "mix" different varients of your application or run your application with different configurations in different environments.
For example:
var bring = require('bring-modules');
bring.autoconfigure();
Your application is now running!
Official releases can be obtained from:
npm install bring-modulesThe lastest developed code may node have not have been released, but can always be found from:
Bring configuration is a JSON object in the following format.
At the top level there are three sections, require, construct and templates.
config = {
"require" : required-modules, //required. (see Requiring Modules)
"construct" : constructors, //required. (see Constucting Modules)
"templates" : template-constructors //optional. (see Templates)
}
required-modules = {
"<module-name>": module-options,
...
}
module-options = {
"depends": ["<module-name>", ...],
"real-name": "<module-real-name>"
}
Effectively this a wrapper for the require() function with a few extra options:
required-modules - Object. With 1..* properties:
require('<module-name>').module-options - Object. With 2 properties:
require() function.constructors = {
"< >": ,
...
}
TODO
template-constructors = {
"< >": ,
...
}
TODO
FAQs
Bring your node.js modules to life
We found that bring-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
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.